Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 525 Bytes

File metadata and controls

40 lines (26 loc) · 525 Bytes

Python


Table of Contents

Lists

Slicing

numpy Module


Lists

??? what a list be fr

Slicing

  • Slicing is the process of extracting a sublist through indexing.
SUBLIST = LIST[START:END:STEP]
# omit a parameter to use a default value:
# START = 0, END = len(LIST), STEP = 1

numpy Module

import numpy as np

# make an numpy array
NP_ARRAY = np.array(ARRAY)
# note: 2D numpy arrays slice in [COLUMNS][ROWS]