Viewing a single comment thread. View all comments

xElMerYx t1_iry1935 wrote

You can embed blocks of code like this

'''This code will print a lost containing numbers 1 through 10'''

import numpy as np

np_array = np.array([]) 

for i in range(1, 11) : 
    np_array = np.append(np_array, i) 

print(np_array)

​

by using the option found here

20