Update page 'Day 9 homework - Sloetjes'

xuanyi.wang
2023-04-19 02:20:33 +02:00
parent 003ba5447f
commit b704965bd1
-7
@@ -18,14 +18,7 @@ def get_module_size(module_name):
2. Create another function that uses the last function to see how many bytes are in all the modules listed in sys.modules.
```
import sys
def get_total_module_size():
"""Returns the total size of all loaded modules."""
total_size = 0
for module_name in sys.modules:
total_size += get_module_size(module_name)
return total_size
```
3. Run your Python interpreter like you would normally, using Jupyter, and run the last function. How many bytes are being used?