what is variable in python ?

Generally, a variable is an empty box where we can store some value. let’s assume x = “hello” , where x is a variable having “hello” data. In python programming variable plays an important role in storing data and reuse them in multiple positions.

Rule for assign name  to a variable

we name a variable whatever we want, but still, there is some restriction like we can not start a variable name from a number.

 

 

Leave a comment

Blog at WordPress.com.

Up ↑

Design a site like this with WordPress.com
Get started