Q:

Write a Python program to reverse a string

0

Write a Python program to reverse a string.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

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

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now