Sunday, 30 August 2020

Python Variables

 

Python Variables


Creating Variables

Variables are containers for storing data values.

Unlike other programming languages, Python has no command for declaring a variable.

A variable is created the moment you first assign a value to it.



Example

x = 5
y = "John"
print(x)
print(y)  
                   

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home