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

Trending Topics

Online now

Members online
738
Guests online
3,439
Total visitors
4,177

Forum statistics

Threads
2,304,614
Posts
29,160,888
Members
1,196,881
Latest member
winterooo
Back
Top