'Printing' in Python refers to printing a message to the screen 🖥. Printing is known as a function in Python, and it is one of the, if not most, basic function used in Python. 🖨
To print 'Hello!' (as a string), the following code would be run:
This would simply output ("Hello") to the screen.
To print the number 2 (as an integer), the following code would be run:
As you can see, printing an item with the data type integer or real does not require quotation / speech marks around the item being printed.
Printing an item which is a string or character requires quotation / speech marks around the item being printed.
Any item being printed requires brackets around the item being printed, as 'print' is a function.
Try printing a few of your own messages in Python now ✉️!