0

Can dictionaries and tuples also be sliced?

1st Sep 2016, 11:11 AM
Lunu'anaki
Lunu'anaki - avatar
4 Antworten
+ 1
you cannot slice dictionaries but slice operator works on tuple. syntax is: New_tuple=tuple [start:stop:step]
30th Sep 2016, 1:42 PM
cryptolock
cryptolock  - avatar
0
I think tuples can be sliced and dictionaries can't, but I'm just a beginner.
2nd Sep 2016, 12:40 PM
Alap Kamat
Alap Kamat - avatar
0
can't
19th Sep 2016, 4:31 PM
Wai Hlyan Htun
Wai Hlyan Htun - avatar
0
you can not sliced dictionaries but you can sliced tuples
25th Sep 2016, 5:52 PM
Vinayak Gudalkar