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
4 Antworten
+ 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
+ 2
This code worked on python it satisfies all test cases
word = input()
res = word[::-1]
print(res)
+ 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
0
I don't know 🥺