Wednesday 14 February 2024

Class 11 CS Practical - 35

 

35 - Write a program in Python to Input a tuple of numbers and find the largest number in a tuple.


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

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

print("Maximum(Largest) number of the Tuple = ",max(T))


Output:

Tuple is: 

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

Maximum(Largest) number of the Tuple =  9

No comments:

Post a Comment