KillerMDFK6231 KillerMDFK6231
  • 30-03-2020
  • Computers and Technology
contestada

Write a statement that takes a variable named text_file that contains a file object and reads its contents into a Python list of lines. Store the resulting list into a variable named file_contents.

Respuesta :

abdullahfarooqi
abdullahfarooqi abdullahfarooqi
  • 04-04-2020

Answer:

contents = list(open_file.readlines())

Explanation:

contents = list(open_file.readlines()) is a statement that takes a variable named text_file that contains a file object and reads its contents into a Python list of lines.

Answer Link

Otras preguntas

Which is smaller half of 36 or one seventh of 42
What state is Nitrogen at 20 degrees celceus?
Which of these examples demonstrates homeostasis? A. a bird flies south for the winter and flies back north in the spring. B. An amoeba takes in food and diges
find the value of x 1. two vertical angles have measure: x squared+18x and x squared+54. 2. the measures of the angles of a quadrilateral are: x, x+4, x+8 and x
Julie wrote the rate $108 in 6 weeks as a unit rate . Find her mistake and correct it.
Help!! Simplify. 3.6 × 42 + 8 ÷ 2 - (1.5 + 5)
Rename numbers using a place value chart
What is the median of this list of numbers? 6, 2, 7, 2, 3
What is bigger one seventh of 14 or half of 36
What is the name of the intense phase of developments that began in Great Britain during the 1700s?