#Here w is used, not a for append, hence file will be overwritten
emp=open("employee.txt","w")
#print file
#All the existing content of file is replaced by the new overwritten line
emp.write("\n Janny   on Probation")
emp.close()

0e7eccd414333526b61370d4a5bcfb9f8b2b4198
<mask token>

<mask token>
emp.write("""
 Janny   on Probation""")
emp.close()

emp = open('employee.txt', 'w')
emp.write("""
 Janny   on Probation""")
emp.close()

#Here w is used, not a for append, hence file will be overwritten
emp=open("employee.txt","w")
#print file
#All the existing content of file is replaced by the new overwritten line
emp.write("\n Janny   on Probation")
emp.close()
