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 143 views
1 answer 122 views
2 answers 221 views
1 answer 133 views
...