Contact: aviboots(AT)netvision.net.il
43,939 questions
57,344 answers
573 users
import numpy as np lst = range(7) print(*lst) lst = np.float_power(lst, 3) print(lst) ''' run: 0 1 2 3 4 5 6 [ 0. 1. 8. 27. 64. 125. 216.] '''
import numpy as np lst = range(7) print(*lst) lst = np.power(lst, 3) print(lst) ''' run: 0 1 2 3 4 5 6 [ 0 1 8 27 64 125 216] '''