From 794f261ed7b3811c252df107675b3e0d6a7b1ba7 Mon Sep 17 00:00:00 2001 From: "xuanyi.wang" Date: Wed, 19 Apr 2023 04:57:21 +0200 Subject: [PATCH] Update page 'Day 9 homework - Sloetjes' --- Day 9 homework - Sloetjes.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Day 9 homework - Sloetjes.md b/Day 9 homework - Sloetjes.md index 507cc4a..1e058bd 100644 --- a/Day 9 homework - Sloetjes.md +++ b/Day 9 homework - Sloetjes.md @@ -74,6 +74,6 @@ print(login) > 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. -* In the code above, the name of the module is '"os"', and the fromlist argument is not given, so the top-level package '"os"' is returned, which is equivalent to importing os with a regular import statement. +* In the code above, the name of the module is `"os"`, and the fromlist argument is not given, so the top-level package `"os"` is returned, which is equivalent to importing os with a regular import statement. -Therefore, the expression '__import__('os').getlogin()' is equivalent to 'os.getlogin()', but it dynamically imports the 'os' module at runtime instead of using a regular import statement. +Therefore, the expression `__import__('os').getlogin()` is equivalent to `os.getlogin()`, but it dynamically imports the `os` module at runtime instead of using a regular import statement.