fork download
  1. sexo = input("digite m ou f: ")
  2. while sexo != 'f' and sexo != 'm':
  3. sexo = input("digite m ou f: ")
  4. print(sexo)
  5.  
  6. #https://pt.stackoverflow.com/q/231075/101
Success #stdin #stdout 0.02s 28384KB
stdin
x
m
stdout
digite m ou f: digite m ou f: m