Damien George
5 years ago
4 changed files with 12 additions and 8 deletions
@ -0,0 +1,7 @@ |
|||
# tuple slicing |
|||
|
|||
x = (1, 2, 3 * 4) |
|||
|
|||
print(x[1:]) |
|||
print(x[:-1]) |
|||
print(x[2:3]) |
Loading…
Reference in new issue