Tutorial 1 : Let’s Start – Python
we will learn Python . Why Python ?
Python is a general purpose programming language. Hence, you can use the programming language for developing both desktop and web applications. Also, you can use Python for developing complex scientific and numeric applications. Python is designed with features to facilitate data analysis and visualization. and for sure its easy and it has a lot of libraries that you can use in your coding . lets start with how to setup python in our computers .
Stage 1 :
- Go to https://www.python.org/downloads/
- Installing Python
- If you are using Windows :
- Download Python 3.8.3 . In the Python installation box, just check the box to add Python to PATH as below:
- If you are using Mac OS X :
- Download Python 3.8.3
- Install the downloaded file .
- Create Folder in your desktop and name it MyProject .
- Download tutorial1.zip file.
- tutorail1.zip contains two Files : script.py and tutorial.py .
- Extract Tutorail1.zip files into MyProject folder.
- Executing the script :
- In Windows :
- open command prompt . A fast way to launch command prompt is to press the Win + R keys on your keyboard. Then, type cmd and press Enter or click/tap OK.
- type py then space then drag and drop the file script.py from Explorer onto the Command Line window and press enter
- In Mac OS X :
- Right-click the file script.py and select “Open With -> Python Launcher” from the context menu. then type python3 script.py
- Now we have create an environment to start coding .
Stage 2 :
- Writing the code
- In Windows :
- Right-click the file tutorial.py and select Edit with IDLE
- In Mac OS X :
- Right-click the file tutorial.py and select “Open With -> IDLE
- here you will start writing your code .
- Follow My Instagram Story to learn step by step . Don’t rush and stay cool .
- write down first example then you have to execute the code .
- to execute the code . do the step that you did in stage 1 in step 8 .
- try to understand the code and the output .
- move to next example and execute one by one and understand it.
- if you face any problem . just send DM and stay cool.
- I will post more explanation at the end of the day .
- Enjoy your day.
Challenge :