0

[Python input] Why doesn't the x in the last line register?

print("What is your name?") x=input("Mia") print(x) print('\nalright' + x + '\nnice to meet you') (It just prints "alright nice to meet you")

3rd Aug 2021, 6:27 AM
Zaquinta
Zaquinta - avatar
2 Respuestas
+ 3
print("What is your name?") x=input("Mia") print(x) print('\n alright ' + x + '\n nice to meet you') ("It just prints alright nice to meet you") it works
3rd Aug 2021, 6:37 AM
Pariket Thakur
Pariket Thakur - avatar
+ 3
Hi Zaquinta! In order to print your input in output , you need to provide it in Sololearn alert box. Sololearn ide works little more different than others. Promt message isn't working properly here. Run -> your input -> submit
3rd Aug 2021, 10:16 AM
Python Learner
Python Learner - avatar