I have this code:
sex = str(input('type sex:')).upper()
while sex not in 'MF':
sex = str(input('try again: ')).upper()
print('Done!!!')
It works fine as a validation thing when I try to input almost anything, but when it's '', it just jumps over my while loop. I've tried initializing the sex string in the beginning, but it didn't help :c