PYTHON CERTIFICATION TRAINING www.edureka.co/python
PYTHON CERTIFICATION TRAINING www.edureka.co/python
01 IntroductionTo Python
02 Applications of Python
03 Variable Declaration
04 Variable Data Types
05 Type Conversion
Topics For Today’s Discussion
Introduction to
python
PYTHON CERTIFICATION TRAINING www.edureka.co/python
Introduction to Python
Python is a high-level interpreted, Object oriented programming language, popular for its readability and
clear syntax.
Procedure
Oriented
Object
Oriented
Easy to
learn
High level
language
PYTHON CERTIFICATION TRAINING www.edureka.co/python
Introduction to Python
JAVA PYTHON
PYTHON CERTIFICATION TRAINING www.edureka.co/python
Introduction to Python
Python was named after British comedy
group ‘MONTY PYTHON’.
GUIDO VAN ROSSUM
Applications of
python
PYTHON CERTIFICATION TRAINING www.edureka.co/python
Applications Of Python Programming Language
Server side Web
Development
Prototyping
Big data
Scripting
Software Development
Databases
Variable declaration
PYTHON CERTIFICATION TRAINING www.edureka.co/python
Variable Declaration and Definition
Variable Declaration
Variable Definition
Variable
PYTHON CERTIFICATION TRAINING www.edureka.co/python
Variable Definition and Declaration
Examples
Variable Declaration
Variable
Variable is created as soon as you assign a value to it. It does not
need any commands unlike other programming languages.
PYTHON CERTIFICATION TRAINING www.edureka.co/python
Variable Definition and Declaration
Examples
Variable
Variable Declaration
x = 100
y = “Edureka”
Print(x)
Print(y)
PYTHON CERTIFICATION TRAINING www.edureka.co/python
Variable Definition and Declaration
Variable Declaration
Variable
Examples
x = 100
y = 200
print(x * y)
print(x – y)
print(x % y)
Variable data types
Data Types
www.edureka.co/pythonPYTHON CERTIFICATION TRAINING
32 41
NUMBERS
STRING
LIST TUPLE
DICTIONARY
5 6
SET
PYTHON CERTIFICATION TRAINING www.edureka.co/python
Data Types
DICTIONARY
LIST
TUPLE
NUMBERS
STRING
SET
integer:
x = 10
float:
x = 10.234
Complex:
x = 25j
PYTHON CERTIFICATION TRAINING www.edureka.co/python
Data Types
DICTIONARY
LIST
TUPLE
NUMBER
STRING
SET
x = ‘hello’
y = “world”
z = input()
print(“here is an example”, x, y, z)
PYTHON CERTIFICATION TRAINING www.edureka.co/python
Data Types
DICTIONARY
LIST
TUPLE
NUMBER
STRING
SET
Example:
Fruits = [‘apple’, ‘kiwi’, ‘banana’]
print(Fruits)
Ordered, can be changed. Duplicate entries are present.
PYTHON CERTIFICATION TRAINING www.edureka.co/python
Data Types
DICTIONARY
LIST
TUPLE
NUMBER
STRING
SET
Example:
animals = { ‘reptiles’: ‘snake’,
‘mammals’ : ‘whale’,
‘amphibians’ : ‘frogs’
}
print(animals)
Unordered, can be changed. NO Duplicate entries are present.
PYTHON CERTIFICATION TRAINING www.edureka.co/python
Data Types
DICTIONARY
LIST
TUPLE
NUMBER
STRING
SET
Example:
animals = (‘lion’, ‘tiger’, ‘monkey’)
print(animals)
Ordered, cannot be changed. Duplicate entries are present.
PYTHON CERTIFICATION TRAINING www.edureka.co/python
Data Types
DICTIONARY
LIST
TUPLE
NUMBER
STRING
SET
Example:
animals = {“lion”, “monkey”, “snake”}
print(animals)
Unordered, No Duplicate entries are present.
Type conversion
PYTHON CERTIFICATION TRAINING www.edureka.co/python
Type Conversion
x = (20)
y = (“number is”)
z = 20
Print( str(x * z) , y )
Type conversion specifies a type
to a variable.
PYTHON CERTIFICATION TRAINING www.edureka.co/python
Type Conversion
1. int() – This function changes any data type to integer data type.
2. float() – This function changes any data type to float data type.
3. tuple() – This function changes any data type to tuple.
4. list() – This function changes any data type to a List.
5. set() – This function changes any data type to a Set.
6. dict() – This function changes any data type to a dictionary.
YouTube Video Link in the Description
Variables & Data Types In Python | Edureka