sexo = input("digite m ou f: ")
while sexo != 'f' and sexo != 'm':
sexo = input("digite m ou f: ")
print(sexo)
#https://pt.stackoverflow.com/q/231075/101
c2V4byA9IGlucHV0KCJkaWdpdGUgbSBvdSBmOiAiKQp3aGlsZSBzZXhvICE9ICdmJyBhbmQgc2V4byAhPSAnbSc6CiAgICAgc2V4byA9IGlucHV0KCJkaWdpdGUgbSBvdSBmOiAiKQpwcmludChzZXhvKQoKI2h0dHBzOi8vcHQuc3RhY2tvdmVyZmxvdy5jb20vcS8yMzEwNzUvMTAx