Differance~20171216-171013.py 352 B

12345678910
  1. with open("ecriture_et_difference.txt", "r") as source:
  2. for line in source:
  3. line = line.strip()
  4. sentence = line.split()
  5. print(sentence)
  6. sentence = sentence.replace("c", "ss").replace("qu", "kh")
  7. print(sentence)
  8. with open(fichier_texte, "w") as destination:
  9. destination.write(sentence)