What is Python
What is Python
Variable Names
x = 5
Example
x = "Python is awesome"
print(x)
In the print() function, you output multiple variables,
separated by a comma:
x = "Python"
y = "is"
z = "awesome"
print(x, y, z)
+ operator to output multiple variables:
x = "Python "
y = "is "
z = "awesome"
print(x + y + z)
In the print() function, when you try to combine a
string and a number with the + operator, Python will
give you an error:
x=5
y = "John"
print(x + y)