Installing Python on Windows
This episode covers:-
1.) How to install Python on Windows
2.) How to use the interactive interpreter to test it.
- Downloading and installing Python :-
Visit https://samuli.to/Python-Download and download the Windows installer:
Run the installer.
Check Add Python 3.7 to PATH and click Install Now:
Let the installer finnish and close it.
Press Windows key or click the icon at the bottom left corner:
Search for Command Prompt and open it:
- Using the interactive prompt :-
Type python in the command prompt and press enter. The interpreter is now in interactive mode, waiting for your commands:
Let’s add two variables together and print out the result with print() function:
Exit the session with Ctrl-Z plus return.
Python interpreter
Interpreter is a software layer between your program and the computer. It reads your code and carries out the instructions it contains.
You can type and run Python code directly in the interactive prompt. This allows us to interact with Django projects using the command line.
Summary
- Python can easily be installed on Windows using the official installer.
- Make sure to add Python to the PATH so you can run it everywhere.
- Interpreter is a software layer between your code and the computer.
- You can use the interactive prompt to type and run Python code.
Share This Post







No comments:
Post a Comment
If you have any doubts. Please let me know.