fork download
  1. cpf = '...........-..'
  2.  
  3. if(cpf[3] !=".") or (cpf[7] !=".") or (cpf[11] !="-"):
  4. cpf = input("O 'CPF' pricisa estar no formato (xxx.xxx.xxx-xx) :")
  5. else:
  6. print("O 'CPF' está no formato correto")
Success #stdin #stdout 0.04s 9304KB
stdin
Standard input is empty
stdout
O 'CPF' está no formato correto