Python Programming - Variables - Discussion

Discussion Forum : Variables - General Questions (Q.No. 1)
1.
What is a variable?
An object that holds True by default
A value that is stored in a memory location
A named location in memory that stores a value
A method called implicitly while accessing the attributes of an object
Answer: Option
Explanation:

In Python, a variable is a named representation of a memory location that is used to store a value, such as a number, string, or boolean. By assigning a value to a variable, you can easily refer to that value later in your code.

Discussion:
1 comments Page 1 of 1.

Vaheera said:   1 month ago
Variable which stores some data .It can be anything like integer value, float value ,bole,char, double etc.
For eg;
Name =vaheera
Here name is variable and vaheera is data which is stored.

Post your comments here:

Your comments will be displayed after verification.