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, 22.06.2019 02:30
Your boss wants you to configure his laptop so that he can access the company network when he is on the road. you suggest a vpn connection to him. he is very concerned about security and asks you how secure vpn is. what do you tell him?
Answers: 1
question
Computers and Technology, 22.06.2019 06:30
Exchanging which type of data uses the least bandwidth? music photographs video voice bandwidth- the amount of data that can be moved between two points in a set time period
Answers: 1
question
Computers and Technology, 22.06.2019 11:30
Andrina writes letters that are regularly sent to hundreds of her company’s customers. because of this, she would like for the mail merge command to be in her quick access toolbar, and she wants it to be the first button on the left. what should andrina do to place the mail merge button there?
Answers: 1
question
Computers and Technology, 22.06.2019 15:00
This is not a factor that you should use to determine the content of your presentation. your audience your goals your purpose your technology
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
History, 04.11.2020 21:20
question
Mathematics, 04.11.2020 21:20
question
Mathematics, 04.11.2020 21:20
question
Mathematics, 04.11.2020 21:20
Questions on the website: 13722363