+1 vote
in Class 12 by kratos

Write a program to input ‘n’ numbers and store it in tuple.

1 Answer

+6 votes
by kratos
 
Best answer

t = tuple ( )

n = input (“Enter any number”)

print “Enter all numbers one after other”

for i in range (n) :

a = input (“Enter number”)

t = t+(a, )

print “Output is”

print t

...