Sollicitatievraag bij VINAYA KUMAR

Question: How can you reverse a string in Python?

Antwoord op sollicitatievraag

Anoniem

22 mrt 2024

my_string = "hello" reversed_string = my_string[::-1] print(reversed_string) # Output: "olleh"