...

/

Quiz: Say “Hello!”

Quiz: Say “Hello!”

Solve this quiz on Python’s print() function.

We'll cover the following...

You wrote your first line of Python code in the last lesson using the print() function. You even customized your message to make it more personal and fun.

Let’s test your understanding of how the print() function works with a short quiz!

1

What is the correct way to print text in Python?

A)

echo("Hello")

B)

printf("Hello")

C)

print("Hello")

Question 1 of 30 attempted

Well done! You’ve learned the basics of Python’s print() function and how to use them to display messages on the screen.

What’s next?

Next, you’ll apply what you’ve learned in a hands-on mini project! You’ll write a Python program that prints one of your favorite quotes—whether it’s from a book, a movie, or your own imagination. It’s a creative way to reinforce your new skills and make Python your own.