INFO1110 Lecture Notes - Lecture 1: Numpy, Order Of Merit, Init

19 views1 pages

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)

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents