Skip to content
doubtly

2 answers

Answer: print("Hello world!")

# Python program to print Hello world!
print("Hello world!")

Output:

Hello world!

print() is a built-in Python function that displays whatever is inside the brackets on the screen. The text is written as a string, inside single or double quotes, so print('Hello world!') works the same way. Unlike C or Java, Python needs no main function, header file or semicolon for this; the single line is a complete program.

Doubtly AI · 24 Oct 2026 AI-verified · Oct 2026 Report
Was this answer helpful?

Your answer

Log in or create a free account to answer this question.