subject
Computers and Technology, 05.10.2019 01:20 med69

#read_running_times. py # chapter 6.2 page 258 def main(): # open the video_times. txt file for reading. video_file = open('video_times. txt', 'r') # initialize an accumulator to 0.0 total = 0.0 # initialize a variable to keep count of the videos. count = 0 print('here are the running times for each video: ') # get the values from the file and total them. for line in video_file # convert a line to a float. run_time = float(line) # add 1 to the count variable. count += 1 # display the time. print('video #', count, ': ', run_time, sep='') # add the time to total. total += count # close the file video_file. close() # display the total of the running times. print('the total running time is', total, 'seconds.') # call the main function main()

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 05:30
The total revenues for a company are $150,223 and the total expenses were 125,766. if you are calculating the net income, which of these spreadsheets would you use? insert a spreadsheet with $150,223 in cell b2 and 125, 766 in cell b3. enter a formula =b2-b3. the formula should be showing in the formula bar. insert a spreadsheet with $150,223 in cell b2 and 125, 766 in cell b3. enter a formula =b2+b3. the formula should be showing in the formula bar. insert a spreadsheet with $150,223 in cell b2 and 125, 766 in cell b3. enter a formula =b2/b3. the formula should be showing in the formula bar. insert a spreadsheet with $150,223 in cell b2 and 125, 766 in cell b3. enter a formula =b2*b3. the formula should be showing in the formula bar.
Answers: 3
question
Computers and Technology, 22.06.2019 15:00
I'm taking a class on how to make a movie, and it offers some apps that would be in the process. the thing is, i don't have any of those ha. if you have any tips on some apps i could use, that would be awesome. i don't have an iphone, so don't suggest any apps like imovie. i know that this is a weird question, but it would be super for me. : )
Answers: 2
question
Computers and Technology, 22.06.2019 18:00
Martha is a healer, a healthcare provider, and an experienced nurse. she wants to share her daily experiences, as well as her 12 years of work knowledge, with people who may be interested in health and healing. which mode of internet communication can martha use?
Answers: 3
question
Computers and Technology, 23.06.2019 14:00
Select the correct answer. andre was recently hired by an organization to check for system vulnerabilities. he is supposed to exploit these vulnerabilities and create a report on the extent of damage to which the system was susceptible. what position does andre hold in this organization? a. information security analyst b. information assurance manager c. penetration tester d. network security engineer e. chief information security officer
Answers: 2
You know the right answer?
#read_running_times. py # chapter 6.2 page 258 def main(): # open the video_times. txt file for rea...
Questions
question
Mathematics, 16.03.2020 21:54
Questions on the website: 13722361