MulaiMulai sekarang secara gratis

Correcting a broken import

In this exercise, we'll learn to import numpy, a module for performing mathematical operations on lists of data. The standard alias for numpy is np.


What did you need to change to make the import run without errors?

Latihan ini adalah bagian dari kursus

Introduction to Data Science in Python

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Fix the import of numpy to run without errors
import NumPy as np
Edit dan Jalankan Kode