A program takes slices of a string, changes the case of letters, and searches for a letter. s = "Python" print(s[1:4].upper(), s[-2:], s.find("T"), len(s[2:-1])) What does the program print?
YTHO on -1 3
YTH on -1 4
YTH on 2 3
YTH on -1 3
Log in to join the discussion.
Loading…