Skip to content

Commit a95652d

Browse files
authored
Update Fun_Put into a list the lines of an external text file.py
1 parent 164b7c6 commit a95652d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Fun_Put into a list the lines of an external text file.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
#Funcion que lee un archivo de texto externo y crea una lista con las lineas del archivo sin espacio entre
99
#lineas
1010

11+
#Function that reads an external text file and creates a list with the lines of the file without space between lines
12+
1113
def list_from_file(file_name):#def de la funcion que acepta un archivo de texto externo
1214
# Make a connection to the file
1315
file_pointer = open(file_name, 'r')#se prepara el archivo "file_name" para ser leido (r) y se asigna a la
@@ -28,4 +30,4 @@ def list_from_file(file_name):#def de la funcion que acepta un archivo de texto
2830
return(lista)
2931

3032

31-
33+

0 commit comments

Comments
 (0)