Generate Binary Numbers Using Queue In Python Using And In If Statement