top of page
Search

Programming with Python Printing


Python Printing

'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:


print ("Hello!")

This would simply output ("Hello") to the screen.


To print the number 2 (as an integer), the following code would be run:


print (2)

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 ✉️!


Thanks ☺️

1,296 views

Recent Posts

See All
bottom of page