How to get the alphabetically highest word from a tuple in Python

1 Answer

0 votes
tpl = ('Han Solo', 'Obi-Wan Kenobi', 'R2-D2', "Anakin", " Chewbacca")

s = max(tpl)

print(s)


'''
run:

R2-D2

'''

 



answered Dec 13, 2018 by avibootz

Related questions

1 answer 216 views
1 answer 196 views
2 answers 339 views
1 answer 206 views
...