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

Lesson 1

Uploaded by

sy.shady86
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Lesson 1

Uploaded by

sy.shady86
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 22

Introduction to Python

Lesson 1









Python IDLE has two modes of running.
The Interactive mode gives immediate feedback to every line of code that is entered, and
is useful for testing ideas and small snippets of code.

The Script mode allows a programmer to type in many lines of Python code, and then save
the code as a single program with a file name. This file can be saved and run at any time.
However, any inputs or outputs of Python programs will always be shown in the Interactive
mode.
• Good practice is to have instances of both Interactive and Script mode
windows open side-by-side, something like this:

Interactive Script

On the left is the


On the right is
Interactive mode
the Script mode
window.
window.
Pause for Thought

Python is a ‘high level language’.

This means that it is closer to human language than it is to ‘machine code’, the
language that all computer processors understand.

Machine code is made up of binary instructions, lots of ones and zeroes.

In order to convert our Python programs into machine code we use a translator, which
is simply another computer program.

In other words, we need a computer program to translate our computer programs!


Script Interactive









Resources’ Links


Recap


Success Criteria

You might also like