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 147 views
1 answer 125 views
2 answers 234 views
1 answer 137 views
...