What are variables in Python Programming language ?
Variables are basically containers which store a certain type of information .
Example : a=10 , b="Hello" , c=0.2 .
Let us take a real life example. In kitchen , many things are stored in containers like rice , wheat , salt, sugar .
Here,
a is assigned the value of integer 10 . An integer is written as a whole number . Numbers such as 3,6,8,34 are integers.
b is assigned the value of a text that is string . A string is written as a text in single inverted commas or double inverted commas . Texts such as "tie" , 'Computer' are strings.
c is assigned the value of a float number . A float is written as a decimal numbers. Numbers such as 0.4 ,0.6 , 0.543 are called as floats.
Further , these variables can be used to perform some basic and advanced calculations. I hope you have got what are variables and its use ..
If you have reached till here , Thank you very much for reading this blog . Have a Nice Day !!!