What is a variable?
A name that stores a value.
A label for data.
(We covered this completely.)
Why do we use variables?
✔ To store values.
✔ To reuse values later.
✔ To make code shorter and cleaner.
(Covered fully.)
How to create a variable?
Using = sign
Example:
x = 10
Rules for variable names
Cannot start with numbers
No spaces
No special characters except _
Case-sensitive
and more..
Data Types
Variables store different kinds of values:
int → whole numbers
float → decimals
str → text
bool → True/False
None → empty value
(We covered this too.)
Topics Covered:
what are variables in programming, what are variables in python, what are variables in c++, what are variables and data types in python, what are variables in c language, what are variables in maths, what are variables in computer, what are variables in statistics, what are variables in python programming, what are environment variables in python, what are global variables in python, what are local and global variables in python, what are the types of variables in python, what is variable in python tamil, what is variable in python telugu, rules of naming variables, rules for naming variables in c, rules for naming variables in python, rules for naming variables in java, variables in programming, variables in programming c++, variables in programming language, variables in java smart programming, variables in python programming, variables in r programming, variables in scratch programming, variables in c programming language, variables in c programming malayalam, variables in c programming tamil, variables in java programming, python variables and data types, python variables class 11, python variables and data types in hindi, python variables and data types for beginners, python variables in hindi, python variables explained, python variables code with harry, python variables and strings, python variables apna college, python variables and operators, python variables project