🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.Renames the numpy package on disk
  2. B.Imports numpy and lets you refer to it as np
  3. C.Installs numpy
  4. 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 →