+ 1

How to fix this so that it could print in reverse?

def reverse (a_string): for i in range (len (a_string)-1,-1,-1) rev = rev + a_string [i] return rev reverse ("make this reverse") print (reverse)

8th Feb 2019, 1:32 PM
Bikal Shrestha
1 Respuesta
+ 1
def reverse (a_string): rev = "" for i in range (len (a_string)-1,-1,-1): rev = rev + a_string [i] return rev print(reverse ("make this reverse"))
8th Feb 2019, 1:58 PM
Pedro Tortello
Pedro Tortello - avatar