fixed exercises, add speaker notes to parts 1 and 4
This commit is contained in:
parent
cd3d64b21c
commit
5e7908dc6b
4 changed files with 6 additions and 6 deletions
|
@ -10,13 +10,13 @@ Investigate what happens when importing from modules with "unprotected" code.
|
|||
|
||||
#### Tasks
|
||||
|
||||
0. Create a file in the `src/` folder called `unprotectd_code.py`.
|
||||
0. Create a file in the `src/` folder called `unprotected_code.py`.
|
||||
|
||||
1. Add a line in `unprotectd_code.py` that imports the `todays_special` function from `daily_menu.py`.
|
||||
1. Add a line in `unprotected_code.py` that imports the `todays_special` function from `daily_menu.py`.
|
||||
|
||||
2. **BEFORE YOU EXECUTE THE FILE**. Discuss with your partner what you think will happen when you run `unprotectd_code.py`.
|
||||
2. **BEFORE YOU EXECUTE THE FILE**. Discuss with your partner what you think will happen when you run `unprotected_code.py`.
|
||||
|
||||
3. Run `unprotectd_code.py`. Does your prediction match reality?
|
||||
3. Run `unprotected_code.py`. Does your prediction match reality?
|
||||
|
||||
4. (optional, for those who know) Discuss with your partner:
|
||||
* Why did this behaviour occur?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue