+ 2
How can I select one result of level?
import numpy as np levels =np.array([1,2,3,4,5,6]) for level in levels: level *= 10 print(level) print(level[1])
1 ответ
0
Unindent your last line, slice your list outside the loop
import numpy as np levels =np.array([1,2,3,4,5,6]) for level in levels: level *= 10 print(level) print(level[1])