Lab 4 of 5
Β·
Guided
Explore Modules with dir()
Objective: Use dir() and the "in" operator to check what functions are available in the json and os modules.
Instructions
Open python3 in your terminal. Run these lines one at a time:
import json
"dumps" in dir(json)
"loads" in dir(json)
import os
"path" in dir(os)
"getcwd" in dir(os)
Paste only the four output lines below (not the import lines, which produce no output) and submit.
π‘ Show Hint
The two import lines produce no output. The four lines using "in dir()" each return True or False.
Paste Your Output