🔒 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
  • 544
    Views
  • 3
    Participants
Last reply from:
arj21

Trending Topics

Online now

Members online
1,118
Guests online
12,824
Total visitors
13,942

Forum statistics

Threads
2,367,495
Posts
29,439,880
Members
1,040,803
Latest member
ea92
Back
Top