Description
Hello there @jairomelo,
I'd like to ask for your help to clarify an inconsistency across one of the lessons in our Python sequence. A reader got in touch to let us know about a mistake the EN lesson working-with-text-files. He noticed that one of the code blocks (which gives the parameter w
) is followed by a textual explanation of what the parameter is doing (referencing the parameter wb
). This causes confusion and seems like an error.
As I reviewed this EN lesson alongside the ES, PT and FR translations, I find that we have a mix of approaches!
Which Python parameter is required, w
or wb
?
Let me know if you have time to help? With your advice, I am happy to implement the changes needed.
Thank you,
Anisa
--
EN working-with-text-files
f = open('helloworld.txt','w')
"The wb
parameter says that you intend to write content to this new file using Python"
FR travailler-avec-des-fichiers-texte
f = open('helloworld.txt','w')
"Le paramètre wb
spécifie que le fichier ouvert est destiné à l’écriture (write) de contenus par Python"
ES trabajar-con-archivos-de-texto
f = open ('holamundo.txt','w')
"El parámetro w
indica que pretendemos escribir contenido en este nuevo archivo utilizando Python"
PT trabalhando-ficheiros-texto-python
f = open('olamundo.txt','wb')
"O parâmetro wb
diz que você pretende gravar conteúdo neste novo ficheiro usando Python"