1. Installing Python on Your System
For Mac / Linux:
First of all open CMD / Terminal ( on Mac/Linux) and type
then press enter. If python is already installed then the version number will appear. On Mac and Linux systems it’s usually installed.
Open Command Line CMD then type
Install the latest version 3.8.2 using the links below depending on your operating system.
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:
Open firstPythonFile.py that you just created
print(‘This is my first Python file’)
Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.
Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.
FOR YOUR OWN SAFETY, PLEASE:
1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.