import numpy print type(numpy.array([1]) + 1)print type(numpy.array(1) + 1)
Standard input is empty
<type 'numpy.ndarray'> <type 'numpy.int32'>
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!