Question: Write a program that makes a backup of a file. Your program should prompt the user for the name of the file to copy and

Write a program that makes a backup of a file. Your program should prompt the user for the name of the file to copy and then write a new file with the same contents but with .bak as the file extension.

Sample Run:

 

Enter a file name: example.dat Your backup file is example.dat.bak

 

please solve using python!

Step by Step Solution

3.41 Rating (164 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Certainly Heres a Python program that creates a backup of a file python import shutil Prompt the ... View full answer

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!