Skip to content
Quiz · NumPy and pandas · lesson 2 of 12

Quiz — a list and an array times 2

What does this program print?

Python
import numpy as np

a = [1, 2, 3]
b = np.array([1, 2, 3])
print(len(a * 2), len(b * 2))

Subscribe to take the course

The course is free. Sign in with Telegram and subscribe to the channel to open every lesson.

Sign in another way