+ 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 Respuestas
+ 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( )