0

Reversing a string is a common task during coding interviews. Given a string as input, output its reverse. Sample Input hello

hey can someone help me with this one? this is what ive made word = 'this is awesome' res = word[::-1] print(res) and it gets right in the test case 1, but isnt the correct awnser please help me out! :D

9th Feb 2022, 8:43 PM
Vitoria Scheuermann
4 ответов
+ 5
You should take word as input variable instead of giving a direct value. https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2426/?ref=app
10th Feb 2022, 3:36 AM
Simba
Simba - avatar
+ 2
This code worked on python it satisfies all test cases word = input() res = word[::-1] print(res)
10th Nov 2022, 5:09 AM
Gregory Maduagwu
Gregory Maduagwu - avatar
+ 1
Vitoria Scheuermann Sample input: hello Sample output: olleh // Is this correct? OR you want this: Sample input: He is a boy Sample output: boy a is he
10th Feb 2022, 2:47 AM
NEZ
NEZ - avatar
0
I don't know 🥺
10th Feb 2022, 2:08 AM
Vitoria Scheuermann