-
-
Save IndhumathyChelliah/155310517ab0d323b8911c5fb93fc258 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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