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

Python

class -11
Subject: Computer Science(086)
Topic: Setting work space for python programming, Ref- Unit II: Computational Thinking and Programming – 1(NCERT)

Instructure: Sujeet Tiwari


Outline
• Introduction to Python IDLE
• Different Mode of writing python Program
• First Python Program
• Saving & executing python program
A sample python program
#Program to print hello on output screen
Print(“Hello World!”)

For this session, we are taking above program code as our sample code, the objective of above program is just to
display a message “Hello World” as output.

Here the term output mean, after sending instruction to computer, computer perform task, that task performed
by computer is termed as output.
How Program work
Compiler / Interpreter
Source Code

Machine Code

#Program to print 1010101010


hello on output 1010101010
screen Hello World!
Print(“Hello World!”) 1010101010
1010101010
1010101010
1010101010
Let we have a live Example
Setup your Workspace

Link: Python IDLE


https://www.python.org/downloads/

Link: PYROID, From Google Play Store


https://play.google.com/store/apps/details?id=
ru.iiec.pydroid3&hl=en_IN
Mode of python programming

Interactive Mode:
Writing live program into python IDLE, and checking the output immediately

Script Mode:
Writing program into a separate file as source code, afterwards running program to check output

Lets hand on practices on both the mode one by one,


using our sample program!!!
Thankyou

For any query, Doubt


Email: sujeet2info@gmail.com

You might also like