Printing
displaying output in Python
Show output using the print(...)
function:
In the above, we could use either single quotes or double quotes (just stick to one consistent set!)
Error!
If we mismatch the quotation marks, an error can happen, e.g.:
Output:
While the program yells at us, it also tell us where our code went wrong (the line #)!
Last updated