Zeros and Ones

  • + 0 comments

    Zeros and Ones(Create array)

    import numpy as np l = list(map(int, input().split()))

    zerosArr = np.array(list(np.zeros(([i for i in l]),dtype=int))) onesArr = np.array(list(np.ones(([i for i in l]),dtype=int))) print(zerosArr) print(onesArr)