def swapFileData():
    sample1=input("enter file name :")
    sample2=input("enter 2nd file name :")
with open(sample1,'r') as a:
   data_a = a.read 

 with open(sample1,'w') as a:
   a.write(data_b)

