Update page 'Day 9 homework - Sloetjes'
@@ -63,6 +63,7 @@ print(get_all_modules_size())
|
|||||||
* The `type()` function returns the type of the `os` module, which is a module object.
|
* The `type()` function returns the type of the `os` module, which is a module object.
|
||||||
|
|
||||||
**7. Restart the Python interpreter. Can you figure out how to call `os.getlogin()` without saying `import os`?**
|
**7. Restart the Python interpreter. Can you figure out how to call `os.getlogin()` without saying `import os`?**
|
||||||
|
###### Example:
|
||||||
```
|
```
|
||||||
login = __import__('os').getlogin()
|
login = __import__('os').getlogin()
|
||||||
print(login)
|
print(login)
|
||||||
|
|||||||
Reference in New Issue
Block a user