NumPy - Fundamentals
The following code tries to multiply each element of a Python list by 2 using NumPy syntax but fails. What is the error?
lst = [1, 2, 3, 4] result = lst * 2 print(result)
lst = [1, 2, 3, 4] result = lst * 2 print(result)
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions