write a program from python to accept values from the user, add a tuple to it and display its element one by one and also display its minimum and maximum values python
Answers
Answered by
27
Answer:
t=tuple( )
n=int(input("enter any no.:"))
for i in range(n):
a=input("enter number:")
t+=(a,)
print(t)
for i in t:
print(i)
print(max(t))
print(min(t))
Explanation: first we have created a tuple by accepting values from the user .and we display it's elements one after the another also it will display the minimum and maximum value...thank you.. hope it will help you all...
Similar questions