Computer Science, asked by varshini7227, 4 months ago

Write a script named copyfile.py. This script should prompt the user for the names of two text files. The contents of the first file should be input and written to the second file.

Answers

Answered by umeshyenumulla
1

Answer:

with open("test.txt") as f:

  with open("out.txt", "w") as f1:

      for line in f:

          f1.write(line)

Explanation:

have a nice day

Similar questions