Skip to document

Python Introduction - 2222222222222222222222############

2222222222222222222222############
Course

Programming with PYTHON (CM5101)

9 Documents
Students shared 9 documents in this course
Academic year: 2022/2023
Uploaded by:
Anonymous Student
This document has been uploaded by a student, just like you, who decided to remain anonymous.
Government Polytechnic, Pune

Comments

Please sign in or register to post comments.

Preview text

UNIT 1. Introduction to Python Programming (Weightage-04)

1 Features of Python-Interactive, Object Oriented, Interpreted, Platform

independent.

What is Python?

Python is a popular programming language. It was created by Guido van Rossum, and released in 1991.

It is used for:

 web development (server-side),

 software development,

 mathematics,

 system scripting.

What can Python do?

 Python can be used on a server to create web applications.

 Python can connect to database systems. It can also read and modify files.

 Python can be used to handle big data and perform complex mathematics.

Why Python?

 Python works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc).

 Python has a simple syntax similar to the English language.

 Python has syntax that allows developers to write programs with fewer lines than some other

programming languages.

 Python runs on an interpreter system, meaning that code can be executed as soon as it is written. This

means that prototyping can be very quick.

1 Python Building blocks- Identifiers, Keywords, Indention, variables,

comments.

Python Features and Advantages

1. Easy to Code

Python is a very high-level programming language. Anyone can learn to code in Python in just a few hours or a

few days. Mastering Python and all its advanced concepts, packages and modules might take some more time.

However, learning the basic Python syntax is very easy, as compared to other popular languages like C, C++,

and Java.

2. Easy to Read

Python code looks like simple English words. There is no use of semicolons or brackets, and the indentations

define the code block. You can tell what the code is supposed to do simply by looking at it.

3. Free and Open-Source

Python is developed under an OSI-approved open source license. Hence, it is completely free to use, even for

commercial purposes. It doesn't cost anything to download Python or to include it in your application. It can

also be freely modified and re-distributed. Python can be downloaded from the official Python website.

4. Robust Standard Library

Python has an extensive standard library available for anyone to use. This means that programmers don’t have

to write their code for every single thing unlike other programming languages. There are libraries for image

manipulation, databases, unit-testing, expressions and a lot of other functionalities. In addition to the standard

library, there is also a growing collection of thousands of components, which are all available in the Python

Package Index.

14. Other Advanced Programming Features

Python contains several advanced programming features such as generators (used to create iterators with a
different approach that most other languages) and list comprehensions (used to create new lists from other
iterables). Python also has automatic memory management eliminating the need to manually allocate and free
memory in the code.

1 Python Environment Setup- Installation and working of IDE. Running

Simple Python scripts to display message. Python Data Types: Numbers,

Strings, Tuples, Lists, Dictionary, Declaration and use of data types.

Was this document helpful?

Python Introduction - 2222222222222222222222############

Course: Programming with PYTHON (CM5101)

9 Documents
Students shared 9 documents in this course
Was this document helpful?
UNIT 1. Introduction to Python Programming (Weightage-04)
1.1 Features of Python-Interactive, Object Oriented, Interpreted, Platform
independent.
What is Python?
Python is a popular programming language. It was created by Guido van Rossum, and released in 1991.
It is used for:
web development (server-side),
software development,
mathematics,
system scripting.
What can Python do?
Python can be used on a server to create web applications.
Python can connect to database systems. It can also read and modify files.
Python can be used to handle big data and perform complex mathematics.
Why Python?
Python works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc).
Python has a simple syntax similar to the English language.
Python has syntax that allows developers to write programs with fewer lines than some other
programming languages.
Python runs on an interpreter system, meaning that code can be executed as soon as it is written. This
means that prototyping can be very quick.