Variable: -

Python, allow us to declare a variable with any data type.


1> Assign Integer variable: -

age=5

print (age)

Output :- 

10

age=10

print (age)

Output:-

10

my_age=30

print (my_age)

Output :-

30

1> Assign Float variable: -

fl=2.17

print (fl)

Output:-

2.17