Write a Python function to reverse a string?Gantasofttraining·FollowMay 22, 2024--Sharedef reverse_string(s):return s[::-1]