0

The question is "the alien's language is English but they speak first letter at last and last letter at first"

For example If we insert:- Hi thanks for help The answers should be:-pi thanks for helH Please help me with it Here are my two attempts https://code.sololearn.com/cu6KOp6q52Ax/?ref=app https://code.sololearn.com/cZM8x08RWD9X/?ref=app

19th Aug 2020, 11:48 AM
Harsh Rahevar
Harsh Rahevar - avatar
3 Réponses
+ 3
Here is the slicing example ,now you need to learn about slicing if you don't understand what's happening! a="hello there" a=a[-1]+a[1:-1]+a[0] print(a)
19th Aug 2020, 12:24 PM
Abhay
Abhay - avatar
+ 5
Harsh Rahevar , before you are going to ask for help, you should have done a try by yourself first. Please put your code in playground and link it here. Thanks!
19th Aug 2020, 2:08 PM
Lothar
Lothar - avatar