Professional Documents
Culture Documents
② Data
③ variables
⑥ Dynamic Type
⑤ type C)
⑥ Data Types
⑦ Memory Management
⑧ printer )
⑨ special characters .
Comments
E
" ""
Data
Data is any piece of information which is
used by the to accomplish a task
program
.
Examples of tasks
→ Find sum of two numbers
check whether number is even
→ a
given
or odd
find numbers
→ LCM of two .
}
person 25
}
"
"
Python bible
"
book title
variables
hold data
• Variables are used to
during
execution of the program .
declare variables
•
In C ,
C++
,
You need to .
them
Only after declaration you can use .
int a;
float b ;
printfc t.cl
" "
a),
i
9=9+5
9=7 ;
variabk.name
variable is combination
• name
any
and underscore
of alphabet , digit .
variable
cannot be used as
•
Keywords
names .
✗ = 10
del se
c / C + t / Java
statement I←
semicolon
Dynamite
Not variable may
-
execution
change during program
well
but the type as .
2C =
: :
÷ : : :: : :÷
5.7 # type of
x is float
" "
A- type of x is SI
✗ =
My Sir G
5-8%9%-1
""
9=5
☐ ☒
÷
idcadf.TT?ea--
9--6 412836 ←
☒☐
3.4
210142
}
int
float datatypes
boot classes
Str ⑧
C)
type
•
(x )
type
2--5.7
type (x)
- Numbers
int
5
3. 7
float
complex 3+45
•
Boolean
boot True
false
" ""
" ""
Mysia
String
/
"
•
my SNG
"'
'
Str MySirG
→☒z
block = 2.5
E- 6
>
☒
x
del ;
-
Garbage -
Collection
It is invoked
a
program ,
by Python
itself ,
whenever required ,
whose
job
is to release of
memory
Garbage
blocks ( object which is not referenced
by any
name )
whutisanobjecl-9.object.is read world entity
•
Object is an instance of a
class
•
object is a
proper noun
•
class is a common noun
Dr Sharma
.
Name%a2-eari-s.IT?
Name in namespace is a variable which
is used to contain id( reference) of
µ
① Instance object >
☒%:¥¥
Function
③ class object Print ☐
> object
" "
•
print simple text point
print ( )
x
variable value
•
print )
( x -15*3
•
print expression print
value print ( X , Y)
*
print multiple
o
Sep
• end