Three slices are taken from one string, two of them with a step. s = "PYTHONIC" print(s[-3::-2], s[1:-1:3], s[::-1][2:5]) What does the program print?
IOTP YO NOH
NHY YO OHT
NHY YOC NOH
NHY YO NOH
Log in to join the discussion.
Loading…