Skip to content
SOLUTION Debug 1.3. Same Line
  • Pages
    • The Task
    • icon picker
      Python Starter Code
    • Solution - Debug 1.3. Same Line
    • Code Clips

Python Starter Code

Copy and paste the code below into your main.py file before you begin the task.

import time
# prints a blank line
print('\n')
# Joke opening line
print('Why does Peter Pan fly all the time?', end=' ')
# Pauses the program for 3 seconds
time.sleep(3)
#Joke closing line
print('He Neverlands!');

Below is a link to the starter task. You can right click open on replit to demo the answer to pupils and talk through the code.
 
Want to print your doc?
This is not the way.
Try clicking the ··· in the right corner or using a keyboard shortcut (
CtrlP
) instead.