Okay, so here’s how I figured out “cuantos dias faltan para el 26 de septiembre” – basically, “how many days until September 26th?” It was a fun little project, and I thought I’d share my process.

First things first, I needed a starting point. I fired up my trusty Python interpreter. Yeah, I know there are a ton of ways to do this, but Python is my go-to for quick date calculations.
Then, I imported the
python
datetime
module. It’s got all the tools you need to work with dates and times.

python
import datetime
Next, I got today’s date. Super easy with

python
. I stored it in a variable called
python
today
. Nothing fancy.

python
today = *()
print(today)
After that, I created a date object for September 26th. This involved specifying the year, month (9 for September), and day (26). I knew the year would be the same as today, so I just grabbed that from the
python
today
object.
python
september_26 = *(*, 9, 26)
print(september_26)
Now for the magic! I subtracted
python
today
from
python
september_26
This gave me a
python
timedelta
object, which represents the difference between the two dates.
python
time_to_september_26 = september_26 – today
print(time_to_september_26)
Finally, I extracted the number of days from the

python
timedelta
object. The
python
timedelta

object has a
python
.days
attribute that gives you exactly that. And there you have it!
python
days_left = time_to_september_*
print(days_left)
And that’s how I calculated the number of days until September 26th! It was a pretty straightforward process, and Python made it super easy. Hope this helps anyone who’s trying to do something similar.