Question: Pls help me with debug python files thank you # save_running_times.py # Chapter 6.2 Page 257 def main(): # Get the number of videos in

Pls help me with debug python files thank you

# save_running_times.py # Chapter 6.2 Page 257

def main(): # Get the number of videos in the project. num_videos = int(input('How many videos are in the project? ')

# Open the file to hold the running times. video_file = open('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(str(run_time) + ' ')

# Close the file. video_file.close() print('The times have been saved to video_times.txt.)

# Call the main function main()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!