What's new

Python How to avoid overwriting in Python?

Vosfows

Addict
Joined
Feb 5, 2019
Posts
122
Reaction
10
Points
102
Good Day po magpapatulong lang po sana ako sa Python codes na ginagawa ko.

Code:
today = str(date.today())
header = ['Name of student', today]

Yan po yung code then heto po yung output

1626490274678.png


Ang problema ko po is paano po hindi mag overwrite yung date? Kasi po ang output po sana na gusto ko is masasave sa csv yung current date ngayon then dapat po tomorrow is another date po ang masasave pero new column na po.
 

Attachments

pag nire-run mo yan kinabukasan edi iba na date nyan..kung same csv file parin gusto mo add ka nalang new row/column, kung ibang csv file naman kinabukasan edi ibahin mo nalang yung filename. medyo hindi complete yung tanong.
 

Similar threads

Back
Top