What is a function used for opening files?, load, run, open, By default the file is opened in text mode, but you can also open the file in binary mode. Which one of the following syntaxes opens the file in binary mode?, x = bopen('demofile.txt'), x = open('demofile.txt', 'b'), The default opening mode when opening a file with the open() function is 'a' for 'reading'., true, false, After opening a file with the open() function, which method can be used to write the content?, list(), read(), show(), write(), To read only one line, we can use another method, which one?, readline(), lread(), readl(), If you call the readline() method two times, it will return the two first lines., true, false, After opening a file with the open() function, which method can be used to read the content?, list(), read(), show(), To read only one line, we can use another method, which one?, readline(), readline, If you call the readline() method two times, it will return the two first lines., true, false, What happens to the original file content if you open a file like this: ‘a’, you can write at the end, write from a start, with open('demofile3.txt', 'w') as f:, It will return an error, A file will be created, open('demofile3.txt', 'w'), The original content will be overwritten, Any new content will be added after the original content, with open('demofile3.txt', 'w') as f:, error, not error, What could you replace the 'w' with to instead return an error if the file already exists?, 'x', 'b', To read only one line, we can use another method, which one?, readline(), lread(), readl().
0%
Python
Compartir
Compartir
Compartir
por
Almas92
Class 10
Editar contenido...
Imprimir
Incrustar
Más
Tareas
Tabla de clasificación
Mostrar más
Mostrar menos
Esta tabla de clasificación es actualmente privada. Haz clic en
Compartir
para hacerla pública.
Esta tabla de clasificación ha sido desactivada por el propietario del recurso.
Esta tabla clasificación está desactivada, ya que sus opciones son diferentes a las del propietario del recurso.
Revertir opciones
Cuestionario
es una plantilla abierta. No genera puntuaciones para una tabla de clasificación.
Requiere iniciar sesión
Estilo visual
Fuentes
Se necesita una suscripción
Opciones
Cambiar plantilla
Mostrar todo
A medida que juegas a la actividad, aparecerán más formatos.
Resultados abiertos
Copiar enlace
Código QR
Eliminar
¿Restaurar actividad almacenada automáticamente:
?