Python For Data Scince
Python For Data Scince
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.
•software development,
•mathematics,
• What is a variable?
We can say that variables in Python are containers that store values.
X=“Sufyan”
Print(x)
Sufiyan
Comments?
In Python, there are two types of comments:
• Single-line comment.(#)
• multi-line comment.(‘’’)
Python Operators
Operators are used to perform operations on variables and values.
In the example below, we use the + operator to add together two values:
There are many types of operators.
• Arithmetic operators
• Assignment operators
• Comparison operators
• Logical operators
• Identity operators
• Membership operators
• Bitwise operators
Arithmetic Operators
Arithmetic operators are used with numeric values to perform common mathematical operations:
Number: There are three types of number : integers, floating point numbers, and
complex numbers.
Integers:20,30,40
Float:35.5,38.2,26.4
Complex:1+3j
What is list in python?
A Python list is an ordered and changeable collection of data objects and we use a square
bracket for the list.
Ex:list1= [2,4,,5,6,7,8]. List Function
Print(list1). append().min().max()
=2,4,5,6,7,8. Len().del().remove().pop()