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

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…

Contents