# Write a Python program to reverse a string.  
 def reverse_string(str1):
    return ''.join(reversed(str1))
print()
print(reverse_string("abcdef"))
print(reverse_string("Python Exercises."))
print()
