![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 08.11.2021 14:40 JamesDelia
The function takes a single parameter: the name of a file. The function should read the file into a list, where each line is an element in the list with the newline character removed, and then return the list. Can you fix it?
def read_file_as_list(filename):
fpoint = open(filename)
my_list = []
for data in fpoint. read():
my_list. append(data)
return data
![ansver](/tpl/images/cats/User.png)
Answers: 1
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 10:00, michael3592
When is an original work considered public domain? a. when posted via social media b. when it is posted on the internet c. when a copyright symbol is not included with the piece of work d. when explicit permission is given by the author / owner
Answers: 1
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
You know the right answer?
The function takes a single parameter: the name of a file. The function should read the file into a...
Questions in other subjects:
![Konu](/tpl/images/cats/mat.png)
Mathematics, 01.07.2019 05:00
![Konu](/tpl/images/cats/istoriya.png)
History, 01.07.2019 05:00
![Konu](/tpl/images/cats/himiya.png)
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/himiya.png)
![Konu](/tpl/images/cats/mat.png)
Mathematics, 01.07.2019 05:00
![Konu](/tpl/images/cats/istoriya.png)
History, 01.07.2019 05:00
![Konu](/tpl/images/cats/mat.png)
Mathematics, 01.07.2019 05:00
![Konu](/tpl/images/cats/mat.png)