def reverse(string):
return string[::-1]
print(reverse("ABCD")) # Output: "DCBA"
" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.
def reverse(string):
return string[::-1]
print(reverse("ABCD")) # Output: "DCBA"