Q. Write a program to add two more employees' details to the file "emp.txt" already stored in disk.
Answer =
f = open("emp.txt ",'a') emno = input("Enter number of Employee :-") nam = input("Enter a name of Employee :-") f.write(emno+" , "+nam) f.close()
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )