What is Variables in Python?

Опубликовано: 26 Июнь 2026
на канале: Techaly Code
371
like

What is a variable? A variable is like a box in which you can store any data like your name, age, number etc. For example, let's break this code and understand the name This is a variable Equal ASCII Curves This is called an assignment operator It means keeping it equal Amit is a value which we are keeping in the name variable which means we have stored the name Amit in the name variable There are only 3 things required to make a variable The name of the variable is x value in which 10 is stored In the name city, Delhi is the name of the string Let's talk about the rules of making a variable The name of the variable should start with alphabet or underscore There should be no space in the name There should be no special characters in the name The name should not start with a number Let's understand each type of variable a little more String is the value of words in double quotes Integer is the number of words like done, 50, 2 Integer is the number of words like done, 50, 2 Boolean value is only 2 True or False #python #variable #coding #pythonprogramming