You've already forked devops-exercises
mirror of
https://github.com/bregman-arie/devops-exercises.git
synced 2025-07-09 23:45:42 +02:00
Name it instead "topics" so it won't be strange if some topics included "exercises" directory.
236 B
236 B
Reverse a String - Solution
my_string[::-1]
A more visual way is:
Careful: this is very slow
def reverse_string(string):
temp = ""
for char in string:
temp = char + temp
return temp