Zeros and Ones

  • + 0 comments

    For Python3 Platform

    No need to use numpy.int. Just type "int" as this is being accepted in the new versions of numpy module. Hackerrank should take a look at the synopsis they have given for this problem

    import numpy
    
    lst = [*map(int, input().split())]
    
    print(numpy.zeros(lst, dtype=int))
    print(numpy.ones(lst, dtype=int))