print('Hello, world!')
2 answers
Best answer
Was this answer helpful?
Thanks for the feedback.
Sign up free to save answers and ask your own doubts
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?
Thanks for the feedback.
Sign up free to save answers and ask your own doubts
Your answer
Log in or create a free account to answer this question.