Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python input not working
#1
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.
Reply
#2
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.
Reply
#3
Hello! Can any of the SUPER Moderators help me out?
Reply
#4
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
Reply
#5
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
Oshadha likes this post
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  WHILE Loop - constant variables NOT working with user input boundaries C0D3R 4 1,434 Apr-05-2022, 06:18 AM
Last Post: C0D3R
  Input() function not working in VS Code darpInd 7 13,088 Feb-17-2020, 03:28 PM
Last Post: snippsat
  Python input not working Vqlk 2 2,569 Sep-08-2019, 10:39 AM
Last Post: Vqlk

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020