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
Certainly Heres a Python program that creates a backup of a file python import shutil Prompt the ... View full answer
Get step-by-step solutions from verified subject matter experts
