+ 1
Explain the output
a="game of dice" print (a[::-3]). Output is : edom. How?
3 Answers
+ 6
If you take a look e which has a value of 3 in the string and it takes 3 steps to go to d, 3 steps from d to e and lastly lets say its "game of dicegame of dice" as you can see there first e in the word game in the first "game of dice" it takes 3 steps for it to go to m to the second string
+ 5
Anytime :)
+ 1
Got it :) thanks