From the course: Programming Foundations: Fundamentals
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Running Python on the command line on Windows - Python Tutorial
From the course: Programming Foundations: Fundamentals
Running Python on the command line on Windows
- [Instructor] One way to execute or run your Python code is by using the command line. I'll be referring to it as the terminal or command line throughout this course. You can access it on your Windows machine by going to the Start menu and then navigating to the Python folder. When you get to the dropdown, choose Python 64 bit. This is going to open up the Python shell. The Python shell will display the prompt, which lets us know that the interpreter is ready for our Python instructions. Unlike the Mac, you don't need to type anything else to start sending Python commands. We'll start out by trying to get the sum of two plus two. Let's see what happens when we type what is two plus two? And hit Enter. Well, we get a syntax error from the Python interpreter. We call that syntax refers to the rules of a programming language. Syntax errors happen when you write code that breaks the expected rules. In this case…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Why Python?1m 52s
-
(Locked)
Installing Python on a Mac4m 19s
-
(Locked)
Installing Python on Windows1m 49s
-
(Locked)
Running Python on the command line on Mac3m 8s
-
(Locked)
Running Python on the command line on Windows4m 10s
-
(Locked)
Installing Visual Studio Code on a Mac3m 43s
-
(Locked)
Installing Visual Studio Code on Windows3m 40s
-
(Locked)
Running Python in an IDE3m 37s
-
(Locked)
Basic statements and expressions4m 2s
-
(Locked)
Troubleshooting issues4m 2s
-
-
-
-
-
-