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

Python PPT

Python is a versatile programming language created by Guido van Rossum in 1991, used for web development, software development, mathematics, and system scripting. It allows for server-side web applications, database connections, big data handling, and rapid prototyping. Key concepts include indentation for code blocks, variable creation without explicit declaration, and various built-in data types such as strings, integers, and lists.

Uploaded by

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

Python PPT

Python is a versatile programming language created by Guido van Rossum in 1991, used for web development, software development, mathematics, and system scripting. It allows for server-side web applications, database connections, big data handling, and rapid prototyping. Key concepts include indentation for code blocks, variable creation without explicit declaration, and various built-in data types such as strings, integers, and lists.

Uploaded by

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

CORE PYTHON

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 be used alongside software to create workflows.

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.
Python can be used for rapid prototyping, or for production-
ready software development.
WHY PYTHON?

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


Python can be used alongside software to create workflows.

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.
Python can be used for rapid prototyping, or for production-
ready software development.
PYTHON INDENTATION

Indentation refers to the spaces at the beginning of


a code line.
Where in other programming languages the
indentation in code is for readability only, the
indentation in Python is very important.
Python uses indentation to indicate a block of code.
PYTHON VARIABLES

Variables are containers for storing data values.

Python has no command for declaring a variable.

A variable is created the moment you first assign a


value to it.
If you want to specify the data type of a variable,
this can be done with casting.
CASTING EXAMPLE

x = str(3) # x will be '3'


y = int(3) # y will be 3
z = float(3) # z will be 3.0
x = 5
y = "John"
print(type(x))
print(type(y))
BUILT-IN DATA TYPES

In programming, data type is an important


concept.
Text Type: str
Variables can store data of different
Numeric Types: types,
int, float, complexand

different types can do different things.


Sequence Types: list, tuple, range

Mapping Type: dict


Set Types: set

Boolean Type: bool


Binary Types: bytes

None Type: NoneType

You might also like