Multiple choice

Which of the following is the correct syntax for an output statement in Python 3?

  1. print "Computer Science"

  2. output(Computer Science)

  3. print("Computer Science")

  4. print(Computer Science)

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In Python 3, print is a function, so it requires parentheses to enclose the arguments. Option C correctly uses parentheses and quotes for the string.