+ 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
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])
+ 1
Såñtösh Màràvi thank sss
0
Bedrock Coder thank you for your answer