Đ Đinh Yến New member Jan 17, 2022 #1 How do I append to a file? Answer So to append to a file it’s as easy as: f = open(‘filename.txt’, ‘a’) f.write (‘whatever you want to write here (in append mode) here.
How do I append to a file? Answer So to append to a file it’s as easy as: f = open(‘filename.txt’, ‘a’) f.write (‘whatever you want to write here (in append mode) here.