Sometimes, the most unusual things can teach us significant lessons, especially when they seem entirely unrelated to the big picture. For me, this lesson came from thinking about my life span, sparked by a programming assignment.
I’ve been learning Python through Udemy courses. One assignment really stood out: we had to write a program calculating how many weeks we’d have left if we lived to be 90 years old. This idea was inspired by Ryan Phillips’ blog, “My Life in Weeks.”
After submitting my assignment, which passed despite being slightly different from my professor’s example, I felt proud. As someone a bit anxious about forgetting the purpose of the code, I use comments (marked with #xxxx) to explain my code. But the real shock came when I entered my age into the program. Seeing the number of weeks I had left, presented so bluntly by my creation, was startling. It made the concept of time much more tangible than considering years or months. This sudden realization of time’s limit hit me harder than ever before.
This experience made me reflect on how one’s perspective on life can be dramatically reshaped by the experience when faced with its fragility. I remembered how I almost lost my husband once, which profoundly changed my outlook on life. I once read a suggestion to write one’s obituary as a way to appreciate every moment. That day, I learned never to take the presence of loved ones for granted, prompting me to spend more quality time with my husband.
Realizing that time is precious, I began considering how I spend it. The thought of reading just one book a week made me sad, especially since I had been struggling with undiagnosed vision problems that made reading difficult and caused headaches without my understanding of why. This realization that I needed glasses for reading was a wake-up call about paying attention to my health and making the most of the time I have.
As I move forward, the awareness of how scarce time truly is will shape how I plan my weeks. Every moment counts, and it’s important to live fully, appreciate our health, and cherish time with loved ones. This unusual lesson from a programming assignment has profoundly impacted how I view life and prioritize my time, reminding me of the importance of being present and making every week count.