Domanda di colloquio di VINAYA KUMAR

Question: How can you reverse a string in Python?

Risposta di colloquio

Anonimo

22 mar 2024

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