2.1.1.14 Your very first program
The print() function - the positional way of passing the arguments
Now that you know a bit about
print()
function customs, we're going to show you how to change them.
You should be able to predict the output without running the code in the editor.
The way in which we are passing the arguments into the
print()
function is the most common in Python, and is called the positional way (this name comes from the fact that the meaning of the argument is dictated by its position, e.g., the second argument will be outputted after the first, not the other way round).
Run the code and check if the output matches your predictions.
Comments
Post a Comment