How To Install Python Programming Language

Download as pdf or txt
Download as pdf or txt
You are on page 1of 28

How to Install and Run Python Programming Language

A. How to Install and Run Python in Windows 10 for PC

1. Open the Python official website: https://www.python.org/

2. Click Downloads.

1
How to Install and Run Python Programming Language

3. Click button to download the latest version of the


installer.

4. Wait for Python to finish downloading the installer.

2
How to Install and Run Python Programming Language

5. Python is finished downloading when you see the Python installer icon.

6. Click the Python installer icon to start installation of Python.

3
How to Install and Run Python Programming Language

7. You will then see the Open File – Security Warning dialog box.

8. Click Run button.

4
How to Install and Run Python Programming Language

9. Python 3.9.6 (64-bit) Setup pop-up dialog box will appear.

10. Click Add Python 3.9 to PATH checkbox to select it.

5
How to Install and Run Python Programming Language

11. Click Install Now begin installation of Python.

12. Python will begin installation process. Wait for the progress bar
to finish.

6
How to Install and Run Python Programming Language

13. Python will display a dialogue box when setup is successful. Click
Close button.

14. To run Python, you must look for the Python icon. You may find
it by clicking the Start button.

7
How to Install and Run Python Programming Language

15. You will then see the Start Menu. Look for Python 3.9 (64-
bit) at the top of the Recently added list.

16. Add shortcuts so to easily run Python. While Start Menu is still
open and you see the Recently added list, right-click on Python 3.9
(64-bit) to see choices where to put the Python shortcut icon. Click
Pin to Start to add Python shortcut to Start Menu.

8
How to Install and Run Python Programming Language

17. If you want to add a Python shortcut to the Taskbar, point at


More and click Pin to taskbar.

18. Take note of the Python shortcut on the Taskbar.

9
How to Install and Run Python Programming Language

19. Click the Python shortcut to run Python’s interactive shell or


terminal. You can write and run your Python codes here. However, we
will be using an Integrated Development Environment (IDE)
software that’s built-in with Python to make Python programming a lot
easier. Click the X button to close the terminal.

10
How to Install and Run Python Programming Language

20. Look for the Python IDE editor named IDLE. Click Start button,
locate Python under letter P group of programs, and click Python 3.9.

21. Locate IDLE (Python 3.9 64-bit). You may create a short of
IDLE on the Taskbar.

11
How to Install and Run Python Programming Language

22. Take note of the IDLE shortcut on the Taskbar. Click to run IDLE.

23. Click to run IDEL. This opens the IDLE Shell. This is where you
can see the results when you run your Python programs.

12
How to Install and Run Python Programming Language

24. To write and run Python programs, you need to create a new
Python source code file. Click File, then click New File.

25. This opens up a new blank untitled document. It looks similar to


a Notepad document. This is where you type in your Python code.

13
How to Install and Run Python Programming Language

26. Rearrange the two windows for easy writing and running of code.

27. Save your new Python file by clicking File, then click Save.
Locate our desired location and type in your filename.

14
How to Install and Run Python Programming Language

A Python file has a filename extension of .py, like Exercise1.py.

28. Type a sample Python program in the editor. Save the file.
print(“Hello world!”)

The print() function displays whatever text you put inside the “ “.
15
How to Install and Run Python Programming Language

29. To run the program, click Run, then click Run Module. You may
also press F5 on the keyboard to run the program.

Notice when you run the program, the output is shown on


the IDLE Shell. This is how you write and run Python programs using
IDLE.

16
How to Install and Run Python Programming Language

B. How to Install Python on Android Mobile Devices

1. On your Android mobile device, such as a smartphone, locate and


tap on the Play Store app.

17
How to Install and Run Python Programming Language

2. Tap on Search for Apps.

18
How to Install and Run Python Programming Language

3. Type Pydroid 3 and tap on Pydroid 3 – IDE for Python 3 from


the search results.

19
How to Install and Run Python Programming Language

4. Tap Install button. Wait for it to complete download.

20
How to Install and Run Python Programming Language

5. You may tap on Open button to run Pydroid 3 – IDE for Python
3 or look for the shortcut icon on your mobile device.

21
How to Install and Run Python Programming Language

6. Look for the shortcut icon to run Pydroid 3 – IDE for Python 3.

22
How to Install and Run Python Programming Language

7. Wait for Pydroid 3 – IDE for Python 3 to finish installation.

23
How to Install and Run Python Programming Language

8. Once installation is complete, you will see the Pydroid 3 – IDE for
Python 3 home screen. This is where you will write and run your
Python programs.

24
How to Install and Run Python Programming Language

9. Tap the folder button to save your program.

25
How to Install and Run Python Programming Language

Tap on Save to save your Python program. Type in your desired


filename.

26
How to Install and Run Python Programming Language

10. Tap on the Run button to run your Python program.

27
How to Install and Run Python Programming Language

11. Here is an example of running a print(“Hello”) program. Press


the back arrow button to go back to the source code that you
wrote.

28

You might also like