Class 11 - Informatics Practices - Python - Variables
Q1: What are variables?
Answer: A variable is a name that is used to store data. It can be used to store different kinds of data.
e.g. age = 16
It defines a variable named 'age' and stores integer value as '16'. Thus 'age' is an integer data type variable.
Every variable in Python is 'dynamic type' i.e. you need not declare data type of a variable or declare a variable before using it. Every variable in Python is an object.
Q2: What are the rules to define a valid variable?