Zeros and Ones

  • + 0 comments

    import numpy as np

    a = input().strip() b = list(map(int,a.split()))

    zeros_array = np.zeros(b, dtype=int) ones_array = np.ones(b, dtype=int)

    Print the arrays

    print(zeros_array) print(ones_array)