Hello World!
Part of the Fundamentals section of Coddy's Python journey — lesson 2 of 77.
The "Hello World!" is a simple program that outputs Hello World! to the screen.
In Python, we use print() to show words on the screen. The words go inside quotation marks.
Let's take a look at the "Hello World!" program in Python:
print("Hello World!")Challenge
BeginnerUse the code view to write a program that outputs Hello World!
Note that anything inside quotation marks is case sensitive. For example:
print("Hello World!")print("hello world!")are different things (notice the capital letters in the first line).
Cheat sheet
To print text in Python, use the print() function:
print("Hello World!")Note: Text inside quotation marks is case-sensitive.
Try it yourself
This lesson includes a short quiz. Start the lesson to answer it and track your progress.
All lessons in Fundamentals
4Operators Part 2
Logical Operators Part 1Logical Operators Part 2Recap - Simple LogicLogical Operators Part 3Logical Operators Part 48Loops
For LoopWhile LoopBreakContinueRecap - FactorialThe Range FunctionNested LoopRecap - Dynamic Input3Operators Part 1
Arithmetic OperatorsModulo OperatorArithmetic ShortcutsRecap - Simple MathComparison Operators9Functions
Declare a FunctionArgumentsReturnRecap - Sigma FunctionRecap - Validation FunctionDefault Values12Iterating Over Sequences
Iterating Over ElementsThe Enumerate FunctionIterating Over Strings Part 1Iterating Over Strings Part 2