INFO1110 Lecture Notes - Lecture 1: Numpy, Order Of Merit, Init
Document Summary
What is similar between arrays and lists: both are an ordered collection of elements, both are indexable, both have length. Why should we use arrays over lists: faster to iterate over the elements because elements are stored contiguously in memory, smaller memory footprint because elements are stored as values, rather than references. Numpy is a python package for creating arrays. Numpy documentation can be found here: https://docs. scipy. org/doc/numpy/ reference/ To use numpy, you need to import it. import numpy as np print(np)