How to find max and min of a tuple of strings with Python

1 Answer

0 votes
t = ('java', 'python', 'c', 'php', 'c++')

print(max(t))
print(min(t))


'''
run:

python
c

'''

 



answered Nov 2, 2018 by avibootz

Related questions

2 answers 189 views
1 answer 161 views
1 answer 176 views
2 answers 222 views
1 answer 118 views
1 answer 149 views
1 answer 123 views
...