Finding Standard Deviation In Python Using And In If Statement