-2

i want it to print every character in the string but from the end to the beginning of the string (inverted),it does not show any syntax error so whats the problem . i tried using print i in range(end,beginning) method but it does not show any output . but it does not say its a syntax error or anything

s="John000Doe000123"
for i in range(len(s),0) :
 print (s[i])
MEMER
  • 23
  • 5

1 Answers1

0
for c in s[::-1]:
    print(c)
Santhosh Balasa
  • 186
  • 3
  • 11