Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah
Created July 17, 2020 04:07
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/155310517ab0d323b8911c5fb93fc258 to your computer and use it in GitHub Desktop.
Save IndhumathyChelliah/155310517ab0d323b8911c5fb93fc258 to your computer and use it in GitHub Desktop.
t=(0,1,2,3,4,5,6,7,8,9,10)
#slicing tuple t from index 1 till index 10 with step 2
t1=t[1:10:2]
print (t1)#Output:(1, 3, 5, 7, 9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment