+ 1

Can anyone tell me how to reverse a word in python? Example: Hello becomes olleh

22nd Jul 2020, 10:18 AM
Parth Kapoor
Parth Kapoor - avatar
3 Respostas
+ 7
x= " Hello " print(x[::-1]) //I know providing direct code is illegal This what you need I think. It's very simple. I'll recommend you to go through your python course once 😅 Thanks and Happy Coding 👍
22nd Jul 2020, 10:23 AM
Nilesh
Nilesh - avatar
+ 6
Though you should go with your Python course, you'll get to know about it. And also directly giving answers doesn't make any sense.(You will not understand the concept behind it) So, I recommend you to go through this topic: https://www.sololearn.com/learn/Python/2453/
22nd Jul 2020, 10:26 AM
Arctic Fox
Arctic Fox - avatar
+ 2
Thanks a lot!
23rd Jul 2020, 9:40 AM
Parth Kapoor
Parth Kapoor - avatar