+ 1

Extra terrestrials problem

Hi guys I am facing a problem while doing the problem "Extra terrestrials" in Sololearn so can you pls tell me what is the problem in the code my_str = input("Enter anything:") alien_lang = my_str[::-1] print(f"To talk to alien you have to say {alien_lang}") Please tell me the problem in the code/logic not give me the code

4th Aug 2020, 10:55 AM
Akshat Jain
Akshat Jain - avatar
3 Respuestas
+ 2
Your code is nice You should write in this style don't my_str= input() alien_lang= my_ str[::-1] print (alien_lang) My suggestion is that please see that small one line code print(input()[::-1])
4th Aug 2020, 11:03 AM
Sâñtôsh
Sâñtôsh - avatar
+ 1
5th Aug 2020, 9:06 AM
Akshat Jain
Akshat Jain - avatar
0
Bedrock Coder thank you for your answer
4th Aug 2020, 11:00 AM
Akshat Jain
Akshat Jain - avatar