11 lines
352 B
Python
11 lines
352 B
Python
with open("ecriture_et_difference.txt", "r") as source:
|
|
for line in source:
|
|
line = line.strip()
|
|
sentence = line.split()
|
|
print(sentence)
|
|
sentence = sentence.replace("c", "ss").replace("qu", "kh")
|
|
print(sentence)
|
|
|
|
with open(fichier_texte, "w") as destination:
|
|
destination.write(sentence)
|