Python 1
Python 1
History of Python
Features of Python
Amazing facts.
Learning Path
History of python:
History of Python
(ABC)
Latest version
Name->Python:
Future is with AI
Dynamic Typing
Dynamic Binding
Features:
Highly Extensible-> can add more library.
Large library
Platform independent
Amazing Facts of Python:
Ranked # 1 (TIOBE )
Task automation
Data Analysis
Data visualization
AI , ML , IOT
a= int ( input () )
b= int ( input () )
c = a+ b
Data
Variables
Dynamic Type
Type()
Data Types
Memory Management
print()
Special characters
Comments:
Single line comment ….. # Text
“““
……..
……..
……..
“””
Data:
Prog is made- to process the data
Examples of tasks
All the above tasks can be done only by using some data.
Variety of Data:
Integers
age of a person 25
Real
Strings
1) Operations on data
int a ;
float b ;
x = 10
del x
x=5
type (x)
x = 5.7
type (x)
int 5
float 3. 7
complex 3+4j
Boolean
String
What is an Object?
① Instance object
② Function object
③ class object
Sep
end
Keywords and import:
① what is module in Python?
② Keywords
Package:
Library:
Module_Name.module_Element
Module_Element can be
To import a particular
element only:
From A2 import x
print(x)
import:
Keywords:
help():
>>> help()
Number System
Unicode
b= "5” → Str
10 → int
"55“ → Str
Type conversion functions:
int()
float ()
complex ()
bool ()
str ()
Number System:
Number System:
Conversion of Number System:
x= 25
Oct(x) → ‘0o31’
hex(x) → ‘0x19’
x = 0b 11001
x = 0o31
x = 0x19
Unicode:
The Unicode is character encoding , and its goal is to
replace the existing character sets with its standard UTF.
character to Unicode
x=‘A’ ord(x) → 65
Unicode to character