Python/List

From Fundamental Ramen
< Python
Revision as of 03:09, 29 June 2018 by Tacoball (talk | contribs)
Jump to navigation Jump to search
TODO Code
List with indices.
for idx, item in enumerate(items):
    print(idx, val)
NumPy
import numpy as np

a = np.int32([1, 2, 3, 4])
b = np.int64([1, 2, 3, 4])
c = np.float32([1.0, 2.0, 3.0, 4.0])
d = np.float64([1.0, 2.0, 3.0, 4.0])
a.tolist()