def reverse_string(str1): return ''.join(reversed(str1)) print() print(reverse_string("abcdef")) print(reverse_string("Python Exercises.")) print()