fork download
  1. # your code goes here
  2. import numpy as np
  3. scores = [3.0, 1.0, 0.2]
  4. x = np.arange(-2.0, 6.0, 0.1)
  5. scores = np.vstack([x, np.ones_like(x), 0.2 * np.ones_like(x)])
  6.  
  7. a=np.array([])
  8. a[0]=2
  9. print a
Runtime error #stdin #stdout #stderr 0.11s 25232KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "prog.py", line 8, in <module>
IndexError: index 0 is out of bounds for axis 0 with size 0