August 2021
Beginner to intermediate
118 pages
1h 29m
English
| Puzzle 6 | Spam, Spam, Spam |
| | from email.message import EmailMessage |
| | |
| | msg = EmailMessage() |
| | msg['From'] = 'prince@palace.ng' |
| | msg['To'] = 'Scrooge McDuck <scoorge@disney.com>' |
| | msg.set_content('''\ |
| | Dear Sir. |
| | |
| | I'm a Nigerian prince who came into some misfortune. |
| | ... |
| | ''') |
| | print(msg) |
Guess the Output | |
|---|---|
|
|
Try to guess what the output is before moving to the next page. |
This code will raise a ModuleNotFoundError exception.
When Python looks for a module to import (e.g., email), it’ll go over the directories in
Read now
Unlock full access