← Quiz: Modules and Libraries: all 14 questions
Quiz: Modules and Libraries · Question 8 of 14
What does import numpy as np do?
What does import numpy as np do?
- A.Renames the numpy package on disk
- B.Imports numpy and lets you refer to it as np
- C.Installs numpy
- D.Imports only the np function
Answer & explanation
Correct answer: Imports numpy and lets you refer to it as np
as creates an alias.
Can you get the rest right without peeking?
Take the timed Quiz: Modules and Libraries quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →