SimpleTuts.com

Python Variables

A variable in Python is a named location used to store data that can be referenced and manipulated in a program, with its type determined dynamically at runtime.


#Variables:-
#Variables are containers for storing data values.

name = "John Doe"
place = "New York"
age = 25

print("Hello I am "+name+" from "+place+" and I am "+str(age)+" years old")
print("Hello I am",name,"from",place,"and I am",age,"years old")
                
Python Online Compiler