Back to front. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Back to front.

x = input("33") print("You entered: " + x) Results in being : 33You entered This is back to front. Shouldn't it be: You entered 33? This apps lessons are starting to fail at teaching from this point onwards.

30th Jan 2022, 8:55 PM
C S
4 Answers
+ 4
The string inside input() is not the input – it is an optional hint x = input() # that's all or x = input("Enter something: ")
30th Jan 2022, 11:01 PM
Lisa
Lisa - avatar
+ 1
I think delete input() like this x = 33
30th Jan 2022, 8:57 PM
Beary
Beary - avatar
+ 1
Even if I change the input() to a string it will see output as the input() value first then the "You entered: " + x second. So it is back to front. Shouldn't the message say You entered (then the value of the input)?
30th Jan 2022, 9:00 PM
C S
+ 1
Im not master so sorry.
30th Jan 2022, 9:06 PM
Beary
Beary - avatar