Q. Which of the following is the correct way to print 'Hello World' in Python?

  • (A) echo('Hello World')
  • (B) print('Hello World')
  • (C) printf('Hello World')
  • (D) cout << 'Hello World'
πŸ’¬ Discuss
βœ… Correct Answer: (B) print('Hello World')
Explanation: In Python, the print() function is used to display output. Other options are from different languages.
Explanation by: Ankit Singh
In Python, the print() function is used to display output. Other options are from different languages.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
84
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Ankit Singh
Publisher
πŸ“ˆ
86%
Success Rate