I\'m trying to find the first day of the month in python with one condition: if my current date passed the 25th of the month, then the first date variable will hold the first da
This could be an alternative to Gustavo Eduardo Belduma's answer:
import datetime first_day_of_the_month = datetime.date.today().replace(day=1)