CodeCheck is an open-source, anonymous, and user-friendly autograder designed primarily for evaluating simple programming assignments. It was created by Cay Horstmann and is widely used in educational settings to help students practice coding and receive instant feedback.
The print() function is used to display information on the screen. It’s one of the most basic and commonly used functions in Python.
You can use print() to show:
Text
Numbers
Results of calculations
Values of variables
When you use a function like print, the parentheses are used to pass information (called arguments) to the function.
print("Hello World!")
Parentheses can also be used to group parts of a math expression, just like in regular math.
print(3 * 5)
In Python, parentheses can also be used to create a tuple, which is a type of collection that holds multiple values.
print("Result:", 3*5)
Run this CodeCheck lab to practice working with the print() function:
CodeCheck Lab - print() function and expressions