Exact code for solving extra terrestials problem i have tried everything | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 8

Exact code for solving extra terrestials problem i have tried everything

Show me the exact code

6th Jun 2020, 7:01 PM
Kenephil
Kenephil - avatar
8 Answers
+ 4
You might be using the variable name the same as one of data types, which you shouldn't do. Try: print(input()[::-1])
6th Jun 2020, 7:24 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
6th Jun 2020, 7:04 PM
Nilesh
Nilesh - avatar
+ 3
But i have tried that see
6th Jun 2020, 7:09 PM
Kenephil
Kenephil - avatar
+ 2
str=input(garbage) Print(str[::-1])
6th Jun 2020, 7:10 PM
Kenephil
Kenephil - avatar
+ 2
That is what i tried
6th Jun 2020, 7:11 PM
Kenephil
Kenephil - avatar
+ 2
Tnx bro
6th Jun 2020, 7:44 PM
Kenephil
Kenephil - avatar
+ 1
Oh man, that's one of the easiest ones. Just make the string reversed, that's all...
6th Jun 2020, 7:08 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 1
Try this inp=input() [::-1] print (inp)
11th Jun 2020, 10:35 PM
Chinyere Unamba
Chinyere Unamba - avatar