Back to Lessons
BeginnerBasics

Print Multiple Lines

lesson_11.py
>>> ## Concept Printing multiple lines in Python is simple and essential for displaying different pieces of information. Each `print()` statement will automatically move to a new line, making it easy to list items, messages, or any text on separate lines. ### Example: Here's how you can print multiple lines: ```python print("Line 1") print("Line 2") print("Line 3") ``` This code produces the output: ``` Line 1 Line 2 Line 3 ``` In this example, each word is printed on a new line using separate `print()` statements. ## Practice Now let's practice what you've learned. Your task is to modify the starter code to print two separate lines: the word **"Hello"** on the first line and **"World"** on the second line. ### Instructions: 1. Use two `print()` statements. 2. In the first `print()` statement, print the word **"Hello"**. 3. In the second `print()` statement, print the word **"World"**. **Remember:** Each word needs to be on its own line. When you run your code correctly, the output should appear as: ``` Hello World ``` The test will check your output format, so make sure it matches exactly!
Code Editor

Sign in to submit your answer and earn XP.