Update page 'Day 9 homework - Sloetjes'

xuanyi.wang
2023-04-19 04:54:30 +02:00
parent ed0e42aa87
commit 0ac86d906c
+1
@@ -71,4 +71,5 @@ print(login)
**8. If you can, explain why this works and quote the relevant sections of section 5 in the language reference.** **8. If you can, explain why this works and quote the relevant sections of section 5 in the language reference.**
##### Answer: ##### Answer:
* According to the Python language reference documentation on Importing Modules (section 5.6), the __import__() function is a low-level interface for dynamically importing modules at runtime. The documentation states that: * According to the Python language reference documentation on Importing Modules (section 5.6), the __import__() function is a low-level interface for dynamically importing modules at runtime. The documentation states that:
> When the name variable is of the form package.module, normally, the top-level package (the name up till the first dot) is returned, not the module named by name. However, when a non-empty fromlist argument is given, the module named by name is returned. > When the name variable is of the form package.module, normally, the top-level package (the name up till the first dot) is returned, not the module named by name. However, when a non-empty fromlist argument is given, the module named by name is returned.