Matkocro10
Cyber Footprint Reduction Specialist
Divine
2
MONTHS
2 2 MONTHS OF SERVICE
LEVEL 1
400 XP
Python Installation and Setup
In this tutorial you will learn
1. Installing Python on Your System
Checking Version
For Mac / Linux:
First of all open CMD / Terminal ( on Mac/Linux) and type
python
then press enter. If python is already installed then the version number will appear. On Mac and Linux systems itās usually installed.
For Windows:
Open Command Line CMD then type
python --version
Installation:
Install the latest version 3.8.2 using the links below depending on your operating system.
For Windows:
For Mac / Linux: https://www.python.org/downloads/mac-osx/
After download is successful just install Python using the installer. Make sure you check the version again just for confirmation that Python has successfully been installed.
2. Setting up IDE for Python
Download your favourite text editor for Windows / Mac / Linux personally I like to use VS Code
Go to extensions from the left bar and install the extension named Python for better hinting and debugging capabilities.
3. Make a Python file
Now that everything is setup. Itās time to create your first Python file. Follow these steps:
And there you go your first file is ready. But right now itās empty so letās start writing some code.
4. Write your first line of code in Python
To write your first line of code in Python. Follow these steps:
Book traversal links for Python Installation and Setup
In this tutorial you will learn
- Installing Python on your system
- Setting up IDE for Python
- Basics of Python
1. Installing Python on Your System
Checking Version
For Mac / Linux:
First of all open CMD / Terminal ( on Mac/Linux) and type
python
then press enter. If python is already installed then the version number will appear. On Mac and Linux systems itās usually installed.
For Windows:
Open Command Line CMD then type
python --version
Installation:
Install the latest version 3.8.2 using the links below depending on your operating system.
For Windows:
Loadingā¦
www.python.org
For Mac / Linux: https://www.python.org/downloads/mac-osx/
After download is successful just install Python using the installer. Make sure you check the version again just for confirmation that Python has successfully been installed.
2. Setting up IDE for Python
Download your favourite text editor for Windows / Mac / Linux personally I like to use VS Code
Loadingā¦
code.visualstudio.com
Go to extensions from the left bar and install the extension named Python for better hinting and debugging capabilities.
3. Make a Python file
Now that everything is setup. Itās time to create your first Python file. Follow these steps:
- Open VS Code ( or any text editor that you installed )
- Name the file firstPythonFile.py
- Save the file
And there you go your first file is ready. But right now itās empty so letās start writing some code.
4. Write your first line of code in Python
To write your first line of code in Python. Follow these steps:
- Open firstPythonFile.py that you just created
- Write
print
(
āThis is
my first Python file
ā)
- Open CMD / Terminal > go to directory for firstPythonFile.py ( e.g cd myDirectory ).
- Type firstPythonFile.py and press enter.
- You should see the result in console.
Book traversal links for Python Installation and Setup
- ā¹ Introduction to Python
- Up
- Python Variables and Comments āŗ