Variable is a name which are used to hold value.Python is a programming language which has no need to declaring a variable name.The declaration automatically happen when assign a value to a variable.
x = 2 # An integer data type y = 'a' # An character data type z = "any name" # An string data type
x = "World" print("Hello " + x) # Python uses the + character for combining both text and a variable
output:
Hello World
x,y,z=20,30,40 print x print y print z
output:
20
30
40