I wrote this simple code:
alpha=float(input('For the MC Test for the mean define alpha (0.10 and 0.05 only available at the moment): '))
if alpha!=0.05 or alpha!=0.10:
while True:
print('Please insert a value equal to 0.05 or 0.10')
alpha=float(input('For the MC Test for the mean define alpha (0.10 and 0.05 only available at the moment): ')
else:
print('MC test will control the FWER at exactly {}% (balanced test)'.format(alpha))
However it is creating a loop in which even when I type 0.05 it is asking again to insert alpha. I would appreciate your comments. Thanks.