There is no built in reverse function for Python\'s str object. What is the best way of implementing this method?
reverse
str
If supplying a very conci
Thats my way:
def reverse_string(string): character_list = [] for char in string: character_list.append(char) reversed_string = "" for char in reversed(character_list): reversed_string += char return reversed_string