Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
6 views

L2-L3.Introduction to Programming and Python Basics

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

L2-L3.Introduction to Programming and Python Basics

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

Introduction to Programming

and Python Basics

Dr. Yadvendra Pratap Singh


Assistant Professor (Senior Scale)
CSE
Question ??
• What is need of language?
• What is need of Programming Language?
• How language is developed?
• What is the low level language, middle level language
and High level language?
• Structured programming language and Object
Oriented Programming language?
Introduction (CO1)

What is Python Language?


• Python is a high-level general-purpose, interpreted, interactive,
object-oriented and reliable language having wide range of
applications from Web development, scientific and
mathematical computing to desktop graphical user Interfaces.

• The syntax of the language is clean, and length of the code is


relatively short.

• It allows to think about the problem rather than focusing on the


syntax.

Object Oriented Programming Unit I


12/03/2024 8
A Brief History of Python (CO1)

• Guido Van Rossum was doing its application-based work in


December of 1989 at Centrum Wiskunde & Informatica (CWI)
which is situated in Netherland.
• It was started firstly as a hobby project because he was looking
for an interesting project to keep him occupied during Christmas.

Object Oriented Programming Unit I


12/03/2024 9
A Brief History of Python Cont…(CO1)

• The programming language which Python is said to have


succeeded is ABC Programming Language.
• He had already helped to create ABC earlier in his career and he
had seen some issues with ABC but liked most of the features.
• After that what he did as very clever. He had taken the syntax of
ABC, and some of its good features.

Object Oriented Programming Unit I


12/03/2024 10
A Brief History of Python Cont…(CO1)

• It came with a lot of complaints too, so he fixed those issues


completely and had created a good scripting language which had
removed all the flaws.
• The inspiration for the name came from BBC’s TV Show – ‘Monty
Python’s Flying Circus’, as he was a big fan of the TV show and also he
wanted a short, unique and slightly mysterious name for his invention
and hence he named it Python!

Object Oriented Programming Unit I


12/03/2024 11
A Brief History of Python Cont… (CO1)

• The language was finally released in 1991.


• When it was released, it used a lot fewer codes to express the
concepts, when we compare it with Java, C++ & C.
• Its main objective is to provide code readability and advanced
developer productivity.

Object Oriented Programming Unit I


12/03/2024 12
Applications areas of python (CO1)

12/03/2024 Object Oriented Programming Unit I 13


Features of Python (CO1)

12/03/2024 Object Oriented Programming Unit I 15


Features of Python (CO1)

• A simple language which is easier to learn.

• Free and open-source.

• Portability.

• Extensible and Embeddable


– easily combine pieces of C/C++ or other languages with Python code.

• A high-level, interpreted language.

• Large standard libraries to solve common tasks.

12/03/2024 Object Oriented Programming Unit I 16


Features of Python (CO1)

• Object-oriented
– Everything in Python is an object.

– Object oriented programming (OOP) helps to solve a complex problem


intuitively.
– Structure supports such concepts as polymorphism, operation
overloading, and multiple inheritance.

• It supports functional and structured programming methods as


well as OOP.
• It can be used as a scripting language or can be compiled to
byte-code for building large applications.
12/03/2024 Object Oriented Programming Unit I 17
Features of Python (CO1)

• It supports automatic garbage collection.

• Scalable
– Python provides a better structure and support for large programs than
shell scripting.
• It can be easily integrated with C, C++, COM, ActiveX, CORBA,
and Java.

• Databases
– Python provides interfaces to all major commercial databases.

Object Oriented Programming Unit I


12/03/2024 18
Getting Python (CO1)

• The most up-to-date and current source code, binaries,


documentation, news, etc., is available on the official website of
Python
https://www.python.org/

• Python documentation can be downloaded from


https://www.python.org/doc/

Object Oriented Programming Unit I


12/03/2024 19
The Programming Cycle for Python (CO1)

• Python's development cycle is dramatically shorter than that of


traditional languages.
• In Python, there are no compile or link steps.
• Python programs simply import modules at runtime and use the
objects they contain.
• Python programs run immediately after changes are made.
• And in cases where dynamic module reloading can be used, it's
even possible to change and reload parts of a running program
without stopping it at all.

Object Oriented Programming Unit I


12/03/2024 20
The Programming Cycle for Python (CO1)

Traditional Development Cycle Python’s Development Cycle


Start the application
Start the application
Test behavior

Test behavior Stop the application

Edit the program code


Stop the application

Python’s Development Cycle with Module Reloading


Edit the program code

Start the application


Recompile code
Test behavior

Relink the executable Edit the program code

12/03/2024 Object Oriented Programming Unit I 21


• Top 10 Python IDEs in 2022(Assignment)

Thank you.

You might also like