🔒 Closed How to avoid overwriting in Python?

Status
Not open for further replies.

Vosfows

Enthusiast
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.webp

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.
 
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.
 
Status
Not open for further replies.

About this Thread

  • 2
    Replies
  • 507
    Views
  • 3
    Participants
Last reply from:
arj21

Trending Topics

Online now

Members online
1,174
Guests online
1,466
Total visitors
2,640

Forum statistics

Threads
2,289,621
Posts
29,059,633
Members
1,212,915
Latest member
ghiero23
Back
Top