0
Python: Doubts in slicing
Here is the print statement and i want to understand the output of the statement and the reason? Print(āgame of diceā[::-3])
5 Answers
0
The output will be backwards with a step of 3.
Output - edom
Note : it counts spaces too
0
It's starts from the end of the list 'e' moves with a step of 3
Output --> 'edom'
0
Yes, Justus is right and I corrected my code recently...
0
Varun Vaswani and Justus : thanks for answering
0
You're welcome