under exercises Question 1
Is there a difference between np.zeros() and np.empty()? Select one of the options given:
- A. No difference, they both output arrays of zeros.
- B.
np.zeros() is not initialized, but gives an output of zeros.
- C.
np.zeros() is faster to execute than np.empty().
- D.
np.empty() outputs an uninitialized array, but np.zeros outputs an initialized array of value zero.
Run this cell to select your answer
import quiz
import ipywidgets as widgets
q1 = quiz.mcq(quiz.question1, quiz.solution1)
ModuleNotFoundError Traceback (most recent call last)
/var/folders/xc/lw3sgq6j0yndxfs11mkqzjrm0000gn/T/ipykernel_14520/3873146880.py in
1 # Run this cell to select your answer
----> 2 import quiz
3 import ipywidgets as widgets
4 q1 = quiz.mcq(quiz.question1, quiz.solution1)
ModuleNotFoundError: No module named 'quiz'