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

Chapter 1 Python Introduction

Uploaded by

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

Chapter 1 Python Introduction

Uploaded by

Jahnavi Pathak
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 18

F U T U R IS T IC IC T C U R R IC U L

U M

PYT HO N
FU N D A M EN TA LS
Learning Objectives

Learning Objective: Students will explore the basics


of Python, its features, advantages and drawbacks.
Learning Outcomes: At the end of the session students
will be able to understand
 What is Python.
 Features, advantages and drawbacks
 Process of downloading and installing python
 Modes of working in python and their differences
 Using python as a calculator
Topics Covered
A brief outline

What is P ython ?
Why Python ?
Features of Python
Advantages and Disadvantages of Python
Download and Installation
process
P yth on
( A P o p u l ar P ro g ram m i n g
Lan g u ag e)

• Developed by Guido Van Rossum

• Named after a comedy series “ Monty


Python ’ s Flying Circus ” telecast on BBC .

• Both as Object Oriented Language and


Procedural Language .
M ai n F eat u res o f
P yt h o n
• Inspired by two languages - A B C language
and Modula - 3
• Very easy language
• M i n i m u m no . of instructions .
• An Interpreted language .
• It’s a complete language in itself
• Easy to download and install .
• Platform independent and portable
language .
• Free Open Source .
Li m i t at i o n s o f
P yt h o n

• No t a ve ry fa st la n g u a g e .

• Very less Libraries


• W e a k in Typ e b in d in g .

• No t easy to
• convert a python program in some
other language .
H O W TO
IN STA LL?

Python c a n b e d o w n l o a d e d f r o m
www.python.org
It is a va ila b le in tw o ve rsio n s -

P yth o n 2 x .

P yth o n 3 x .

W e w ill d o w n lo a d 3 9 1 h e re
. . .

O p e n w ww python org o n a n y
. .

b ro w se r .
How to
install
W h ere d o w e go
next ?
Double click on dow nloaded file and follow the
steps.
O P E N IN G TH E IDLE SH O W S TH E SCR E E N
B E LO W
THE INTERACTIVE A N D SCRIPT M O D E
Interactive M o d e a n d Script M o d e are the two ma in modes w h i c h are used
in P yth on P rogram m in g Lan guage .

I N T E R A C T I V E S C R I P T

Used wh e n the user wants to run Used w h e n the user is


one single line or one b lock of cod e .
working with more than one
single cod e or a b lock of
It runs very fast and gives the cod e .

output instantly hence It takes m ore tim e to com p ile .

called interactive .

In this m od e one can sim p ly


,

write all the lines of code


The commands are not stored and save them as a p y file . .

for future use .


THE INTERACTIVE MODE
THE SCRIPT M O D E
THE SCRIPT M O D E
T Y P E A N Y E X P R E S S I O N A N D PRESS E N T E R T O SEE T H E R E S U LT
Let’s Practice

Type the following on the shell and check the result.

1. 4525+3626
2. 23262-4435
3. 72*43
4. 3**5
5. 16/4
6. 16//4
7. 16%4
In the next class, we would discuss about simple operations in
Python.

You might also like