
Python Installation and First Program Guide
Learn how to install Python and create your first program step-by-step. Follow instructions to set up Python, configure environmental variables, and write a basic "Hello World" program. Get ready to kickstart your Python journey!
Download Presentation

Please find below an Image/Link to download the presentation.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.
You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.
E N D
Presentation Transcript
Python Installation and the first program 1
Learning target O This chapter introduces: 1. How to install the Python Create the first program 2. 2
Installation O Use the browser to view the webpage on https://www.python.org/downloads/ Select the menu Download Python 3.4.3 4
Installation O Click Next 5
Installation O Click Next 6
Installation O Click Next 7
Installation O Click Finish 8
Installation O Open the search and enter in Chinese Windows System (or "Environment Variable in English Windows System) O Edit system environment variables O Click "Environmental Variables (N)", O Select the "Path" item in System Variables" O Click "Edit (I)... O Add the locations of the Python installation directory and the Scripts directory into the values of the Path O E.g: C:\Python34;C:\Python34\Scripts 9
Installation 10
The first program O In almost all tutorial language books, his first practice program is HelloWorld O The so-called HelloWorld is to make the program output "HelloWorld O Here we show how to use Python to write the first Python program 12
The first program O Turn on IDLE Python 3.4 GUI O New File:Click File => New File 13
The first program O Enter: print ("Hello World") O Execute: Click Run => Run Module(F5) 14
The first program O Click (OK) O Select storage path and enter the file name 15
The first program O Result: 16
The first program O After saving as a yourname.py file, you can also change your working directory to the specified file storage directory via cmd, and then enter the name of the python file to execute the program to show the result O Result of your python file: 17
Source O Installation teaching : O http://www.foolegg.com/how-to-build-a-python- programming-environment-on-windows/ O http://pydoing.blogspot.tw/2010/11/python- pathset.html O Basic teaching: http://pydoing.blogspot.tw/2014/07/python- guide.html O other information: O http://jishus.org/?p=309 18