I was trying to rename a CSV file in the same folder as "(today's date).csv" but I am getting path specified errors.
The code I used:
from datetime import date
today = date.today()
d1 = today.strftime("%d/%m/%Y")
src = 'Attendance.csv'
dst = d1+'.csv'
os.rename(src, dst)
The errors I got:
The system cannot find the path specified: 'Attendance.csv' -> '01/03/2024.csv'