Différance~20171216-164130.py 427 B

1234567891011121314151617
  1. fichier_texte = "differance.txt"
  2. # Write sentence as string
  3. sentence = "Ne nous arrêtons pas ici à ce qui peut ressembler à l'essence du mythique"
  4. # Print sentence
  5. print(sentence)
  6. # # Split sentence into words
  7. # words = sentence.split()
  8. # print(words)
  9. sentence = sentence.replace("c", "ss").replace("qu", "kh")
  10. print(sentence)
  11. with open(fichier_texte, "w") as destination:
  12. destination.write(sentence)