El día anterior hoy en día Python DateTe

from datetime import datetime, timedelta
    
d = datetime.today() - timedelta(days=days_to_subtract)
Xenophobic Xenomorph