Quiz Champion

In the programming language "Python", which of these statements would display the string "Hello World" correctly?

  • console.log("Hello World")
  • print("Hello World")
  • echo "Hello World"
  • printf("Hello World")
Explanation

The answer is print("Hello World") because the print() function in Python is used to display output on the console. When you pass the string "Hello World" as an argument to the print() function, it will print the string "Hello World" on the console.