subject

Which of the following code segments will display all of the lines in the file object named infile, assuming that it has successfully been opened for reading? a. while line in infile :
print(line)
b. while infile in line :
print(line)
c. for infile in line :
print(line)
d. for line in infile :
print(line)

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:30
Under which key category do the page up and page down keys fall? page up and page down keys fall under the keys category.
Answers: 1
question
Computers and Technology, 22.06.2019 21:30
After you clean an engine with hot water spray, it seems to stall; when it doesn't stall, it's idling noisily. technician a says to check for loose bolts on the flex plate near the torque converter. technician b says to wipe down the spark plug wires and the distributor cap. who is correct? a. technician a b. both technicians a and b c. technician b
Answers: 1
question
Computers and Technology, 24.06.2019 12:30
Why does the pc send out a broadcast arp prior
Answers: 1
question
Computers and Technology, 24.06.2019 16:50
How many types of string types does python support?
Answers: 1
You know the right answer?
Which of the following code segments will display all of the lines in the file object named infile,...
Questions
question
English, 17.09.2019 14:30
Questions on the website: 13722367