fork download
  1. import numpy
  2.  
  3. print type(numpy.array([1]) + 1)
  4. print type(numpy.array(1) + 1)
Success #stdin #stdout 0.11s 25296KB
stdin
Standard input is empty
stdout
<type 'numpy.ndarray'>
<type 'numpy.int32'>