Question: Program contains three syntax or logic errors. Your challenge is to find these errors and fix them. save_running_times.py # Chapter 6.2 Page 257 def mainO
Program contains three syntax or logic errors. Your challenge is to find these errors and fix them.
save_running_times.py # Chapter 6.2 Page 257 def mainO # Get the number of videos in the project. num_videos intCinput'How many videos are in the project? # Open the file to hold the running times. video file openC'video-times.txt', 'w') # Get each video's running time and write it to the file. print('Enter the running times for each video.") for count in range(1, num_vidoes 1): run-time-: float(input('Video #' + str(count) video file.write(strCrun_time)n + ': ')) # Close the file video file.closeO) print('The times have been saved to video_times.txt. # the main function mainC)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
