Wednesday 14 February 2024

Class 11 CS Practical - 36

 

36 - Write a program in Python to Input a tuple of numbers and find the smallest number in a list.


T= (5, 8, 9, 6, 2, 5)

print("Tuple is: \n", T)

print("Minimum(Smallest) number of the Tuple = ",min(T))


Output:

Tuple is: 

 (5, 8, 9, 6, 2, 5)

Minimum(Smallest) number of the Tuple =  2


No comments:

Post a Comment