fork download
  1. test = input("CPF: ")
  2. cpf = test[:3] + "." + test[3:6] + "." + test[6:9] + "-" + test[9:]
  3. print(cpf)
  4.  
  5. #https://pt.stackoverflow.com/q/237371/101
Success #stdin #stdout 0.02s 9132KB
stdin
12345678900
stdout
CPF: 123.456.789-00