Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah
Created July 16, 2020 22:35
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/c320d5597803439113a999880c74887d to your computer and use it in GitHub Desktop.
Save IndhumathyChelliah/c320d5597803439113a999880c74887d to your computer and use it in GitHub Desktop.
t1=('red','blue','green')
t1_sort=sorted(t1)
print (t1_sort)#Output:['blue', 'green', 'red']
t2=(1,3,5,7,2,4,6)
t2_sort=sorted(t2)
print (t2_sort)#Output:[1, 2, 3, 4, 5, 6, 7]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment