subject

You text file begins with the following rows. The pattern is a description of the item to be repaired, its color, and the issue.

bike, red, flat tire
bike, blue, broken chain
skate, blue, loose wheel
mitt, red, torn lace

Your program starts with the following lines.

import csv
aFile = open("data\broken. txt","r")
aReader = csv. reader(aFile)
countRed = 0
for item in aReader:

When you write code to count the number of times red is the color, what is the index of "red"?

2

1

0

3

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 01:30
Consider the following statements: #include #include class temporary { private: string description; double first; double second; public: temporary(string = "", double = 0.0, double = 0.0); void set(string, double, double); double manipulate(); void get(string& , double& , double& ); void setdescription(string); void setfirst(double); void setsecond(double); }; write the definition of the member function set() so that the instance variables are set according to the parameters. write the definition of the constructor so that it initializes the instance variables using the function set() write the definition of the member function manipulate() that returns a decimal number (double) as follows: if the value of description is "rectangle", it returns first * second if the value of description is "circle" it returns the area of a circle with radius first if the value of description is "cylinder" it returns the volume of a cylinder with radius first and height second. hint: the volume of a cylinder is simply the area of the circle at the base times the height. if the value of description is "sphere" it returns the volume of the sphere with radius first. otherwise it returns -1.0;
Answers: 1
question
Computers and Technology, 22.06.2019 04:30
Eye injuries usually occur as a result of all of the following things, except: a) proper machine operation b) battery explosion c) falling or flying debris d) electric welding arc
Answers: 2
question
Computers and Technology, 23.06.2019 02:30
Rafael needs to add a title row to a table that he has inserted in word. what should he do? use the alignment options. use the merge and center option for all the cells in the top row. use the merge and center option on the first two cells in the top row. none of the above
Answers: 3
question
Computers and Technology, 23.06.2019 13:30
Me ! evelyn is a manager in a retail unit. she wants to prepare a report on the projected profit for the next year. which function can she use? a. pmt b. round c. division d. what-if analysis
Answers: 2
You know the right answer?
You text file begins with the following rows. The pattern is a description of the item to be repair...
Questions
question
Social Studies, 30.05.2021 09:40
question
Social Studies, 30.05.2021 09:40
question
Physics, 30.05.2021 09:40
question
Mathematics, 30.05.2021 09:40
question
Advanced Placement (AP), 30.05.2021 09:40
Questions on the website: 13722361