Skip to content
Solution Debug 1.4. Special Characters
  • Pages
    • Solution - Debug 1.4. Special Characters
    • The Task
    • icon picker
      Python Starter code
    • Code Clips

Python Starter code

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

import time

# print blank line
print('\n')
# joke opening line
print(Let me tell you a joke)
# joke opening line
print'What do you call an alligator in a vest? '
# program pause
time.sleep(3);
# print blank line
print('\n');
# joke closing line
print(,An investigator!,)

# aligator ascii art
# aligator ascii art
print(" .-._ _ _ _ _ _ _ _ _")
print(" .-''-.__.-'00 '-' ' ' ' ' ' ' ' '-.")
print("'.___ ' . .--_'-' '-' '-' _'-' '._")
print(" V: V 'vv-' '_ '. .' _..' '.'.")
print(" '=.____.=_.--' :_.__.__:_ '. : :")
print(" (((____.-' '-. / : :")
print(" (((-' .' /'")
print(" _____..' .'")
print(" '-._____.-'")

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.