6 lines
167 B
Python
6 lines
167 B
Python
|
def reverse_string(str1):
|
||
|
return ''.join(reversed(str1))
|
||
|
print()
|
||
|
print(reverse_string("abcdef"))
|
||
|
print(reverse_string("Python Exercises."))
|
||
|
print()
|