SyntaxFix
Write A Post
Hire A Developer
Questions
Array analogue for the python's
a = [] for i in range(5): a.append(i)
is:
import numpy as np a = np.empty((0)) for i in range(5): a = np.append(a, i)