+ 2
Can you Slice a tuple
5 Respostas
+ 4
Deepak Thakur
Yes you can slice a tuple in Python
Example
tup = ('34', '45', '56')
print(tup[1:])
Output
('45','56')
+ 1
yes
0
yes
0
Yes you can
- 1
Yes one can slice a tuple like apple
tuple_apple = ( 'a', 'p', 'p', 'l', 'e',)
print(:3)
result('a'.'p'.'p')