04 Lec4 List Numpy - UMD Department of Computer Science

MSML 605

List Comprehension

List Comprehension

General Syntax

[ ]

3

Squaring numbers

Create a list of squares of numbers from 1 to 5

4

Squaring numbers

Create a list of squares of numbers from 1 to 5

5

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download