Variables! In lawman term

Siddharth RaiSiddharth Rai
1 min read

A variable in Python is an entity or a container that is used to store data provided by the user. Or, we can say, it is a reserved memory location to store values. Some of the key features of variables are discussed below.

  • Variable is stored in RAM.

  • Value saved inside a variable is lost once the kernel is restarted.

  • Name of the variable is case-sensitive.

  • Variable name can be anything. But, the name should start with numbers or special characters except for the underscore(_).

  • Variable name should not be a Python keyword and no space is allowed while naming a variable.

Python provides a cool feature in which you can type the name of the variable followed by a dot(.) and press the tab. This will list all the functions available for that variable in Python.

0
Subscribe to my newsletter

Read articles from Siddharth Rai directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Siddharth Rai
Siddharth Rai