How can I fix the input error in Visual Studio Code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I fix the input error in Visual Studio Code?

How can I fix the input error in Visual Studio Code? x = input() print(x) Traceback (most recent call last): File: "e: /Python/Lib/site-packages/hello.py", line 1, in <module> x = input () File "<string>", line 1, in <module> NameError: name 'hello' is not defined

14th May 2021, 5:40 PM
Rodrigo Nicolás Baca Moreno
Rodrigo Nicolás Baca Moreno - avatar
6 Answers
+ 3
If you are installing virtual studio for the first time, you have to download some packages to run a code on it. You can watch this video if it this problem appeals to you. https://youtu.be/AKVRkB0fot0
14th May 2021, 7:50 PM
Endalk
Endalk - avatar
+ 1
Did you type hello as input?
14th May 2021, 5:43 PM
Nico Ruder
Nico Ruder - avatar
0
Yes, and I get that error when I try to print it. I try the same program here on SoloLearn and it works fine for me.
14th May 2021, 5:47 PM
Rodrigo Nicolás Baca Moreno
Rodrigo Nicolás Baca Moreno - avatar
0
Jelp mi, quiero seguir boludeando en Visual Studio con mis programas chafas y no puedo. 😔
14th May 2021, 6:14 PM
Rodrigo Nicolás Baca Moreno
Rodrigo Nicolás Baca Moreno - avatar
0
It did not work.
15th May 2021, 3:12 AM
Rodrigo Nicolás Baca Moreno
Rodrigo Nicolás Baca Moreno - avatar
0
Did you have installed python other than the visual studio?
15th May 2021, 8:55 AM
Endalk
Endalk - avatar