Demo: Hello World | Python for Beginners [6 of 44]

preview_player
Показать описание


#microsoftdeveloper #pythonforbeginners #learntocode
Рекомендации по теме
Комментарии
Автор

For those having the "The term 'python' is not recognized as the name of a cmdlet, function, script file, or
operable program." problem:


1. Reopen the python 3.7.4 executable (used in installation)
2. Click "Modify", click "Next", and click the box next to "Add Python to environment variables" so that it is checked.
3. Click "install".
4. Close out of Visual Studio Code and restart it.


Worked for me.

osian
Автор

1:15 Creating a file and a folder.
1:45 Color is a good sign on Visual Studio Code.
2:45 input and print.
3:15 Different lines or same line (\n): new line.
4:45 Multiple modules and functions.
4:58 Print statements to find errors: zero division error.

HECTORARTUROA
Автор

Another tip: Ctrl + L also clears the terminal window

johnnyvcrow
Автор

had to type "py" instead of "python" to run the code. Why the inconsistency?

JeeJeez
Автор

I got the exact same result and now I am Python master probably better than the one teaching right now.

IloveQuran
Автор

The video is incorrect, you need to type py to run the python code.

davidsolomons
Автор

am getting this error when I type : py hello.py


can't open file [Errno 2] No
such file or directory

help?

seeno
Автор

It's really fun to learn Python. Thanks to Christopher and Susan...

sam_d
Автор

You guys ought to show how to setup VS code. What's the whole essence of this course when I can't even set up the output panel? I use Anaconda jupyter but would like to follow this course with VS code

laughmeout
Автор

You need to save each new string or what you are displaying up and then will be able to work!

robsonnevesribeiro
Автор

After a new install of visual studio code program the output view is not up by default. You can show or open it by selecting the View menu and then output from the menu.

jamesbishop
Автор

It's probably already been said, but using charmPy for your editor would be easier. CharmPy is build specifically for Python and you can run the code directly from the editor to the terminal without retyping the file name, with one click of a button.

matthewbeauregard
Автор

I love this tutor, thank you so much for these videos! I am a total novice and just love your explanations!

jydgmur
Автор

I wasn't able to run the code because I relied on the video. Maybe the way it run the code now was changed. You have to type "py" instead of "python" to run the code. I wasted my 3 hours of my life to run that simple code :) :)

rupertogrospejr
Автор

How do I get the terminal window to begin with? @1:45 - It seems to just suddenly appear, and I don't even have that section of the window showing !?!? The answer is View menu - Appearance - Show Panel to get that part of the window to show up. Then the terminal just opens.

chrisw
Автор

On macOS I had to close out the terminal then I ran the code again. And when I typed in my name it ran properly. Also on macOS you have to use clear not cls these videos should have at the least pop ups explaining the different commands between popular OS.

Raheem
Автор

I know the video means well, but it just tosses out words like variable and string without telling the viewer what they are. I understand, because I've been exposed to some Python beforehand, but a total beginner?

KidsLearnHTML
Автор

I really rrlly wish you guys were using dark mode with VS Code. so much easier on the eyes. It's the default too, so why change it for the video?

Crockerfeller
Автор

Anyone getting this error:


`Traceback (most recent call last):
File "helloWorld.py", line 1, in <module>
name = input("What is your name? ")
File "<string>", line 1, in <module>
NameError: name 'jev' is not defined`


You might have 2 versions of Python on your machine (both 3 AND 2). Instead of running script `python helloWorld.py`, run `python3 helloWorld.py`.


Worked for me.

jevforsberg
Автор

hello everyone, can someone tell me where she pressed to run the script ?

michaelawuku