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

Trending Topics

Online now

Members online
355
Guests online
578
Total visitors
933

Forum statistics

Threads
2,274,604
Posts
28,957,156
Members
1,234,344
Latest member
Ivokoiiii01
Back
Top