filmov
tv
Variable Declaration and Assignment in Python

Показать описание
What is a Variable in Python?
A Python variable is a reserved memory location to store values. In other words, a variable in a python program gives data to the computer for processing.
Every value in Python has a datatype. Different data types in Python are Numbers, List, Tuple, Strings, Dictionary, etc. Variables can be declared by any name or even alphabets like a, aa, abc, etc.
How to Declare and use a Variable
a=100
print (a)
Delete a variable
You can also delete variable using the command del "variable name".
del a
A Python variable is a reserved memory location to store values. In other words, a variable in a python program gives data to the computer for processing.
Every value in Python has a datatype. Different data types in Python are Numbers, List, Tuple, Strings, Dictionary, etc. Variables can be declared by any name or even alphabets like a, aa, abc, etc.
How to Declare and use a Variable
a=100
print (a)
Delete a variable
You can also delete variable using the command del "variable name".
del a