I am trying to generate sequences containing only 0\'s and 1\'s. I have written the following code, and it works.
0
1
import numpy as np