Output Variables
The Python print()
function is often used to output variables.
Example
x = "Python is awesome"
print(x)
In the print()
function, you output multiple variables, separated by a comma:
Example
x = "Python"
y = "is"
z = "awesome"
print(x, y, z)
You can also use the +
operator to output multiple variables: Continue reading Python – Output Variables