Program to take input -> write in a file with every EOF as start

= open("code.txt","a")
data = input("Type below: \n")
f.write(f"{data}\n")
f.close()


= open("code.txt","r")
print(f.read())
f.close()

---code.txt---
coding at 3am. but its only 2am till now! lets 2021

Comments

Popular Posts