Array Input Using For Loop In Python Using And In If Statement