subject

In this problem, you should write one function named get_supply_count. This function should have no parameters, and does not need to return anything. The task of the function is: (A) Open a file in read mode named supplies. txt (B) Loop through the lines, keeping track of the total number of supplies You can assume each line has one string representing the name of the supply, followed by thr number of that supply. For instance Television 10 or tomato 38 or skittles 147. (C) Open a file in write mode named total. txt (D) Write the total supply count to the file For instance, say the function was called and this is what was in supplies. txt:

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 00:30
Setting up a home network using wireless connections is creating a a. vpn b. lan c. wan d. mini-internet
Answers: 2
question
Computers and Technology, 25.06.2019 08:00
In designing a management information system (mis), after defining the system's objectives, the next step is to information in a useful formatintegrate the hardware and software componentscollect and analyze datause information for decision making
Answers: 2
question
Computers and Technology, 25.06.2019 23:00
When the coolant system thermostat is closed, coolant is allowed to flow to the
Answers: 1
question
Computers and Technology, 26.06.2019 02:00
List the seven steps in the decision-making process
Answers: 1
You know the right answer?
In this problem, you should write one function named get_supply_count. This function should have no...
Questions
question
Mathematics, 15.01.2020 11:31
question
Mathematics, 15.01.2020 11:31
question
Health, 15.01.2020 11:31
Questions on the website: 13722367