Practicing Statistics Interview Questions in Python
Conor Dewey
Data Scientist, Squarespace
np.random.randint(start, end, size)
x = [1,2,3,4]
out = []
for item in x:
out.append(item**2)
print(out)
[1, 4, 9, 16]
x = [1,2,3,4]
out = [item**2 for item in x]
print(out)
[1, 4, 9, 16]
Practicing Statistics Interview Questions in Python