Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite0
Why this formatted string is not working?please help!
I'm trying to use formatted string to send to file.write() to write in a file content = "xxxxx" file.write( %s % content) Why it shows a syntax error? Could someone help me with this? Many thanks!
1 Réponse
0
i am really new to this but, try file.write( content ) rather than that, it maybe doesnt want listing if there is only one element