Python program to find biggest and smallest value in tuple
Answers
Answered by
0
Python Tuple
Output:
Smallest value: 12
Biggest value: 78
Step-by-step explanation:
tu=(23,43,54,12,22,78)
print('Smallest value: ',min(tu))
print('Biggest value: ',max(tu))
The following are the description of the program.
- Firstly, set the variable 'tu' and initialize the tuple type values '(23,43,54,12,22,78)' in it.
- Then, print the smallest and the highest value through the 'min()' and the 'max()' pre-defined function that print the smallest and the largest value of the list or tuple by passing the variable in its parentheses.
Learn More:
https://brainly.in/question/8665426
Similar questions