Exchanging content in two files - Python : I am working on this problem and having trouble coming up with code for it:

Write a program that prompts for two file names and exchanges the contents of the two files. Your program should be sufficiently robust that if a file doesn’t exist, the program will reprompt.

This is all I have so far:

File1 = input(“Input file 1 name:”)
File2 = input(“Input file 2 name:”)

File1 = “file1.txt”, w+
File2 = “file2.txt”, w+

Any tips would be much appreciated! Thank you.
