def swapFileData (file1, file2) :
    file1 = input("Enter the name of file 1 : ")
    file2 = input("Enter the name of file 2 : ")
    with open(file1, 'r') as a:
        data_a = a.read()
    with open(file2, 'r') as b:
        data_b = b.read()
    with open(file1, 'w') as a:
        a.write(data_b)
    with open(file2, 'w') as b:
        a.write(data_b)