+ 2
What if try to index the tuples like 0:10 where there is only 3 values
2 odpowiedzi
+ 2
Yes, ie. for 0:2 the result is ('one', 'two'). Did you see it?
One step after you can learn it:
https://www.sololearn.com/learning/2453/
+ 3
In this code it prints out the first element if we index it like lists using [0]. But what if we use [0:10] while indexing?
It prints out all the values in the tuple containing in this code..
But is there any rule or advice regarding it 🙄?