Please enable JavaScript to use CodeHS

Programación en Python 1 y 2

Lesson 15.5 Escribir en un archivo

Description

En esta lección, los alumnos aprenderán a escribir en archivos existentes. Explorarán dos modos: “w” para sobrescribir un archivo y “a” para añadir a un archivo.


Objective

Students will be able to:

  • Understand the purpose and importance of writing to files in programming.
  • Use the “w” mode to overwrite the contents of a file.
  • Use the “a” mode to append new data to the end of a file.
  • Demonstrate the ability to write text and data to a file using appropriate file handling techniques.