Welcome back to the course of Python.
In previous blog we knew how to print anything in python. In this blog we are going to talk about Variable in python.
What is variable in python?
Variables are like storehouse of the data we want to use for our program. When we add some value in a variable python saves it and it can be use in program.
Now the question is how we store anything in variable?
The answer is very simple firts we call a variable name and then give some value to them.
for example
a = "Python"
b = 120
And so on
Python have 5 types of variable.
- String
- Number
- List
- Tuple
- Dictionary
But for now we are just going to focus on Numbers and string.
Here's a video how to declare a variable in python.
Follow me for full course and follow me on Instagram and ask questions
Give your suggestions in comment box.........
Comments
Post a Comment