Week 6 Unit 2: Self-test

22. October 2024

Question 1

Which of the following ways to import libraries or functions from libraries are correct?

Note: There are 4 correct answers to this question.


"import hot_function from cool_lib"
"from cool_lib import hot_function"
"import cool_lib"
"from cool_lib import hot_function as hf"
"import cool_lib as cl"

< Previous unit | Next unit > | Course Overview