Pregunta de entrevista de Acronis

write a function which reverses the string. Example; "A test string" "string test A"

Respuesta de la entrevista

Anónimo

14 jul 2022

' '.join(string.split(' ')[ ::-1])