How to get the max value in a tuple in Python

1 Answer

0 votes
tpl = (9, 4, 5, 7, 12, 4, 11, 10)

max_value = max(tpl)

print(max_value)  
  
  
  
'''
run:
  
12
  
'''

 



answered Jul 25, 2022 by avibootz

Related questions

1 answer 194 views
2 answers 193 views
1 answer 126 views
1 answer 143 views
1 answer 122 views
...