0% found this document useful (0 votes)
5 views

1.4 - Getting Started With Python

Uploaded by

ezedean.dahman
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

1.4 - Getting Started With Python

Uploaded by

ezedean.dahman
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 11

Getting Started

With Python

ICS 3U0
Lesson Outline
Python Programming Language

Using the Python IDE - IDLE


Interactive Command Mode
Program Mode
Getting Python – At Home or Personal laptop
On your personal computer, go to:
https://www.python.org/downloads/

Download Python any version of Python after 3.6


What is Python?
What does this mean?
Interpretive Programming Language named after
Monty Python’s Flying Circus

Invented in the early 90’s by Guido von Rossum.

Open Source - Developed by a large team of volunteers


and is freely available from the Python Software
Foundation
What is Python … Continued
Widely used in industry – YouTube, NASA, NYSE
 Web and Internet Development
 Database Access
 Desktop GUI’s
 Scientific and Numeric
 Network Programming
 Software and Game Development

Widely used in education as a first programming language


 University of Waterloo, University of Toronto, McMaster
Python’s IDE - IDLE
Most programming languages have an Integrated
Development Environment called an IDE.

An IDE is a software application that usually consists


of a source code editor, debugger and a compiler or
interpreter.

A popular Python IDE is called IDLE


Starting IDLE – At School
From your DESKTOP (or Applications) open on the
programming folder and then choose the
Python folder

The window that appears will look like this:


IDLE – Interactive Mode
The >>> is Python’s way of telling you that you are in
interactive mode. In interactive mode, what you type is
immediately run.

Try typing 1+1 in the window.

Python will respond with 2.

Try typing print("Hello, World!")in the


window (exactly as it appears here)

Python will respond with Hello, World!


IDLE – Program Mode
Go to File then New File. A window that looks like this will
appear:

In this window type the following:

1 + 1
print ("Hello, World!")
IDLE – Program Mode Continued
Your program didn’t run! In this mode, you need to tell
IDLE to run your program.

First save the program. Go to File then Save. Save it as


‘hello.py’ in your Exercises directory that you created in
lesson 1.1 on on your appropriate drive.

Now that it is saved, the program can be run. To run


the program choose -> Run -> Run Module.

Notice anything interesting?


IDLE – Interactive Mode Vs. Program Mode
Interactive Mode Program Mode
We will be using this We will be using this
mode to test what mode to write all of our
different commands will programs
do inside a program

Cannot save any code Can save our programs to


while in interactive mode use at a later time while
in program mode

You might also like