0
Can dictionaries and tuples also be sliced?
4 Answers
+ 1
you cannot slice dictionaries but
slice operator works on tuple.
syntax is:
New_tuple=tuple [start:stop:step]
0
I think tuples can be sliced and dictionaries can't, but I'm just a beginner.
0
can't
0
you can not sliced dictionaries but you can sliced tuples