+ 1
Python input prompt doesnât work.
When I try: x=input("enter your name") print(x) It will pop up with âLooks like your program needs inputâ Instead of saying âenter your nameâ. If I input Bob, the output is: âenter your nameBobâ.
2 Answers
+ 2
Toby Steer that's just how the sololearn code playground works. It checks if the code needs input. If it does it displays a popup where it asks you to provide all the inputs the program needs. Then the code is sent to a server, executed, and the result returned. There is no real interactivity.
+ 1
x = input("Enter your name ")
Or
print("Enter your name ")
x = input( )