0% found this document useful (0 votes)
24 views9 pages

Unit 1.1

Uploaded by

Ishan Dipte
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)
24 views9 pages

Unit 1.1

Uploaded by

Ishan Dipte
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/ 9

2SAEKNT : Introduction to Python P R M I T & R ,B A D N E R A

Subject

Introduction to Python
Unit 1.1
Prof. M. V. Tiwari

(B. E. in Electronics & Telecommunication Engineering, H.V.P.M., C.O.E.T., Amravati, 2009.)


(M. Tech. in Electronic System & Communication, An Autonomous Institute of GCOE,
Amravati, 2013.)
(Pursuing Ph.D. from P.G. Department of Applied Electronics, S.G.B.A.U. under the guidance
of Dr. S. V. Dudul, Head PGDAE.)

DEPARTMENT OF ELECTRONICS & TELECOMMUNICATION ENGINEERING PROF. M. V. Tiwari


2SAEKNT : Introduction to Python P R M I T & R ,B A D N E R A

Module 1 : Introduction to Python


•Python is an interpreted, object-oriented, high-level programming language with dynamic semantics.
•Python is a simple, easy to learn syntax, emphasizes readability and therefore reduces the cost of
program maintenance.
•Python supports modules and packages, which encourages program modularity and code reuse.
•There is no compilation step, the edit-test-debug cycle is incredibly fast.
•Debugging Python programs is easy: a bug or bad input will never cause a segmentation fault.
Instead, when the interpreter discovers an error, it raises an exception.

DEPARTMENT OF ELECTRONICS & TELECOMMUNICATION ENGINEERING PROF. M. V. Tiwari


2SAEKNT : Introduction to Python P R M I T & R ,B A D N E R A

Development of Python
•Python was first developed by Guido Van Rossum in the year 1989 (December).

•He was born in Netherlands and studies in


University of Amsterdam.

Why the name Python ?


Van Rossum picked the name Python from TV show “Monty Pythons Flying Circus”.

DEPARTMENT OF ELECTRONICS & TELECOMMUNICATION ENGINEERING PROF. M. V. Tiwari


2SAEKNT : Introduction to Python P R M I T & R ,B A D N E R A

Python Logo
Tim Parkin designed the logo of python.

•Eyes form the colon which is used heavily in the language.


•Python coils around their eggs which succeeds in making snake into a letter P.

DEPARTMENT OF ELECTRONICS & TELECOMMUNICATION ENGINEERING PROF. M. V. Tiwari


2SAEKNT : Introduction to Python P R M I T & R ,B A D N E R A

Python Applications

DEPARTMENT OF ELECTRONICS & TELECOMMUNICATION ENGINEERING PROF. M. V. Tiwari


2SAEKNT : Introduction to Python P R M I T & R ,B A D N E R A

Python Features

•Simple and Easy


Programs in Python are written in English like statements which implies more clarity and a
compact code.

•Procedure and Object Oriented


Python programs can be created using functions and also using classes and object.

•Dynamically Typed
A language is dynamically-typed if the type of a variable is checked during run-time.
Common examples of dynamically-typed languages includes JavaScript, Objective-C, PHP,
Python, Ruby, Lisp, and Tcl.

DEPARTMENT OF ELECTRONICS & TELECOMMUNICATION ENGINEERING PROF. M. V. Tiwari


2SAEKNT : Introduction to Python P R M I T & R ,B A D N E R A

• Interpreted (Line by line translation & Execution)


Python code is translated into byte code and then the byte code is
interpreted by Python Virtual Machine (PVM).

•Platform Independent and Portable (Combination of H/W & S/W)


Python's compiler generated byte codes which can be run on any system having PVM.

•Huge Library
Python has huge library for developing programs faster.

DEPARTMENT OF ELECTRONICS & TELECOMMUNICATION ENGINEERING PROF. M. V. Tiwari


2SAEKNT : Introduction to Python P R M I T & R ,B A D N E R A

Q 1) Python Language was developed by :


A) James Gosling B) Steve Jobes
C) Dennis Ritchie D) Guido Van Rossum

Q 2) Python is __________ typed language.


A) Statistically B) Dynamically
C) Normally D) None of these

Q 3) Which of the following is not the feature of Python ?


A) Procedure Oriented B) Object Oriented
C) Interpreted D) Platform Dependent

DEPARTMENT OF ELECTRONICS & TELECOMMUNICATION ENGINEERING PROF. M. V. Tiwari


2SAEKNT : Introduction to Python P R M I T & R ,B A D N E R A

Q4) What is the general extension of the Python Program ?


A) .pyc B) .py
C) .python D) .p

Q 5) What Command should be used to run python assuming the name of program is
Hello ?
A) python Hello.py B) py Hello.py
C) pyc Hello D) python Hello

DEPARTMENT OF ELECTRONICS & TELECOMMUNICATION ENGINEERING PROF. M. V. Tiwari

You might also like