Variables in Python – Practical Examples of Python Variable

## Variables In Python

In Python programming, a variable is a container (storage area) to hold data. Let’s See For example,

“`c
number = 10
“`

Above, `number` is the variable storing the value **10**.

### Assigning values to Python Variables

As like we can see from the upon example, we can use the assignment operator `=` to assign a value to a variable.

“`c
# assign value to site_name variable
site_name = ‘devsenv.pro’

print(site_name)

# Output: devsenv.pro
“`

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top