Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah
Created July 16, 2020 22:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IndhumathyChelliah/743db2d06c6c431304fefd5328694dcf to your computer and use it in GitHub Desktop.
Save IndhumathyChelliah/743db2d06c6c431304fefd5328694dcf to your computer and use it in GitHub Desktop.
t1=('red','blue','green')
t1_sort=sorted(t1,reverse=True)
print (t1_sort)#Output:['red', 'green', 'blue']
t2=(1,3,5,7,2,4,6)
t2_sort=sorted(t2,reverse=True)
print (t2_sort)#Output:[7, 6, 5, 4, 3, 2, 1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment