Python Forum

Full Version: Python input not working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, I just installed python 3.9 and now its not working correctly.

Example:
I typed this simple script.

name = input ("Enter Your Name Pleas:")

print ("Hello" + name)

FIRST PROBLEM:
When I run this script the prompter DO NOT show Enter Your Name Pleas before the prompter/

SECOND PROBLEM:

If I enter any name an error is shown name is not defined

EVEN WORSE

Sometimes it does not print anything the prompt is just there blinking.

I hope you can help me out , I try searching on the web but not luck.
This is a python 3.9 problem, I just run another script with python 2.7, and it works fine, Then I run the same script with python 3.9 and the prompt just blink and not output at all.
Hello! Can any of the SUPER Moderators help me out?
Can you show how you're running the program? 3.9 has no problems with your script, so there must be something else happening. Please show the entire code and the entire error message exactly.

name = input ("Enter Your Name Pleas:")

print ("Hello" + name)
Output:
$ python3.9 -V Python 3.9.1 $ python3.9 /tmp/query_script.py Enter Your Name Pleas:myname Hellomyname
As mention tell how you run code,IDLE/editor or command line.
Here is code online.
If on Windows look at Python 3.9/3.8 and pip installation under Windows