Update page 'Day 9 homework - Sloetjes'

xuanyi.wang
2023-04-19 04:48:53 +02:00
parent 436ecf2c28
commit 790b3fde3e
+3 -3
@@ -52,8 +52,8 @@ print(get_all_modules_size())
**5. With only the `sys` module loaded, look at the `sys.modules` dict. What is the type of the value of the `os` key?**
##### Answer:
The type of the value of the `os` key in the sys.modules dictionary depends on whether the os module has been loaded yet.
* The type of the value of the `os` key in the sys.modules dictionary depends on whether the os module has been loaded yet.
If the `os` module has not been loaded yet, the value of the `os` key will be `NoneType`.
* If the `os` module has not been loaded yet, the value of the `os` key will be `NoneType`.
If the os module has been loaded, the value of the os key will be a module object representing the `os` module.
* If the os module has been loaded, the value of the os key will be a module object representing the `os` module.