Lowest price ever! Learn Generative AI for 48% less!
Get my discount0
taka a string as input and give its reverse as output how can i do this with forloop in python can anyone plz explain?
1 Answer
+ 1
string[i] - take a i-symbol in string
new_string = string1 + string2
range(start, end, step) step can be -1, -2...