Calendar Chaos: Now Starring You

Day 31 of 100 Days Coding Challenge: Python

Back in the pre-Google-stone age, I was the kind of person who printed out monthly calendars like I was running a tiny print shop. Menu plans, exercise routines, music lessons, sports schedules—you name it, it lived on my calendar. When I was a student, if it wasn’t written down, it didn’t exist. My calendar was my brain’s external hard drive. Fast forward to my first real adult job: I marched into a store and proudly bought myself a Franklin Covey agenda. The deluxe version. It felt like holding the crown jewels of time management. I’ve always loved the feeling of flipping to a fresh week, filling it with possibility (and color-coded chaos). So, when I realized I could make my own Python calendar app from scratch? Let’s just say I had a moment. Sure, it’s not going to dethrone Google Calendar anytime soon, but it’s mine—and it doesn’t send me passive-aggressive push notifications.

Today’s Motivation / Challenge

Calendars are one of those tools we don’t think about until we need them—or lose them. Today’s project taps into the part of us that loves order, hates forgetting birthdays, and secretly dreams of color-coded to-do lists. Building a calendar app is a great way to connect programming with everyday life. Plus, who doesn’t want to click a button and feel like they’ve conquered time?

Purpose of the Code (Object)

This little app lets you view any month and year in a simple graphical layout. You can click on a day to add a note (because you will forget Aunt Susan’s birthday), and today’s date gets a nice highlight so you don’t accidentally time-travel. It’s not fancy, but it’s useful—and surprisingly satisfying.

AI Prompt: 

Add features to highlight today’s date, allow users to click on a date to add a note, and save those notes in a local file. Keep the interface clean and simple.

Functions & Features

  • View any month and year in a calendar grid
  • Highlight today’s date in green (because you deserve attention)
  • Click on a date to add a note or reminder
  • Save notes automatically in a JSON file
  • Bold and blue font indicates a note exists

Requirements / Setup

Python 3.x

No external packages required

Minimal Code Sample

btn = tk.Button(…, command=lambda d=day: self.add_note(d))

if day == today.day and month == today.month and year == today.year:

    btn.config(bg=”lightgreen”)  # Highlight today’s date

This sets up each calendar button and highlights today’s date.

Customizable Calendar

Notes / Lessons Learned

This time, I jumped right into the GUI version because—let’s be honest—it’s way more fun to see a calendar than to stare at a wall of text. At first, all it did was show the month. Cool… but also about as interactive as a printout taped to your fridge. So I started tinkering. First, I made it highlight today’s date—because every hero needs a spotlight. Then I added the ability to attach notes to specific days. Now, do those notes pop up when you hover or click? Not yet. But the font turns blue and bold, and that’s enough to make my inner calendar nerd happy. For someone who thrives on color-coding their life down to what to eat on Tuesday, this project hit all the right buttons. Literally.

Optional Ideas for Expansion

  • Add a note viewer pane to display saved events when clicked
  • Export notes as a CSV for your future time-travel journal
  • Add color tags for event types (work, personal, world domination)

Crunching Numbers with Style: My Python EMI Calculator App

Day 30 of 100 Days Coding Challenge: Python

Back in university, I survived a finance course where one of the big thrills was figuring out how much you’d owe on a mortgage—because nothing says fun like watching compound interest quietly ruin your weekend. We used financial calculators that looked like relics from a Cold War museum, and if the professor was feeling futuristic, we’d get to use Excel. These days, of course, you can find slick EMI calculators on almost every bank’s website. But today I wondered—could I make one myself? Turns out, yes. I built a simple Python EMI calculator app. It’s not glamorous, it doesn’t sparkle, and it definitely won’t win UX awards, but it works. No spreadsheets. No arcane formulas. Just pure, functional code—and the oddly satisfying thrill of watching your hypothetical loan turn into very real monthly heartbreak.

Today’s Motivation / Challenge

Ever tried to figure out how much you’re actually paying the bank for that “affordable” loan? Spoiler: it’s more than you think. Today’s challenge was a practical one—create a loan/EMI calculator to see the real cost of borrowed money. It’s part nostalgia (throwback to finance class) and part grown-up reality check. Plus, building this in Python and Streamlit let me stretch some GUI/web muscles without losing my mind.

Purpose of the Code (Object)

This code calculates your monthly loan payment (EMI), the total amount you’ll pay back, and how much of that is interest. You just punch in the loan amount, interest rate, and loan period. It does the math, so you don’t have to reach for that dusty calculator—or guess wildly.

AI Prompt: 

Create a loan/EMI calculator in Python that asks for principal, interest rate, and tenure, then calculates and displays the monthly EMI, total repayment, and total interest. Include both a Streamlit app and a Tkinter GUI.

Functions & Features

  • Takes user input for loan amount, interest rate, and tenure
  • Calculates monthly EMI using a standard financial formula
  • Displays total repayment and total interest
  • Offers both a desktop GUI and a Streamlit web app interface

Requirements / Setup

pip install streamlit

For GUI:

  • Built-in tkinter (no install required on most Python versions)

Minimal Code Sample

emi = (P * r * (1 + r)**n) / ((1 + r)**n – 1)

This formula calculates your monthly payment using principal (P), monthly interest rate (r), and loan term in months (n).

Loan Emi Calculator Streamlit

Notes / Lessons Learned


The code wasn’t hard to write. What tripped me up? Forgetting I wasn’t in Python 101 anymore—I was in Streamlit land. So when I ran it the usual way (python scriptname.py), nothing happened. No errors. Just silence. A tumbleweed moment. Then I remembered: it’s streamlit run scriptname.py. Once I got that right, the app popped open in my browser like a well-behaved web butler. Lesson learned: the right tool needs the right doorbell.

Optional Ideas for Expansion

  • Add a pie chart showing principal vs. interest breakdown
  • Allow users to export results as a CSV or PDF
  • Include an “extra payment” option to see how prepayments affect the loan term

Rebuilding My Memory System One App at a Time

Brian’s fitness journal after a brain stroke

Despite it still being cold today, it’s already less of a disaster than yesterday. A low bar—but progress is progress.

I started the day with one clear intention: to reinforce a new habit by using a new app. The motivation is painfully obvious. I’ve recently forgotten two important doctor appointments. The dentist mishap had a semi-respectable excuse (my old phone died a dramatic death), but missing my nephrologist appointment? That one was entirely on me.

Enough was enough.

The app Finch, which I decided to try, is one my wife uses regularly—and happily. She’s been using the free version for a while and swears by it. A friend of mine went all in on the premium version because he enjoys unlocking extra features. I figured starting small would be wiser. Commitment can come later.

To make the habit stick, I used a strategy that’s worked for me before: attach the new task to something I already do. This was a trick I learned in occupational therapy. When your brain has experienced trauma, memory becomes… creative. The goal isn’t to trust it—it’s to outmaneuver it.

So I decided to open the app immediately after completing my daily language lesson. I already do that lesson without fail, so it’s the perfect anchor. One task flows into the next, and suddenly the new habit doesn’t feel new at all.

I set up my task list so it aligns neatly with due dates. That way, I don’t have to hunt for what needs to be done. Small organizational tweaks make a big difference when attention is limited. Efficiency is kindness—to your future self.

I added my daily essentials first: medication, stretching, and language practice. Medication, especially, is non-negotiable in my case. Forgetting it is not an option. I also added weekly tasks—like kombucha bottling. We drink kombucha every day, so forgetting to bottle it would be… unfortunate.

With my digital life slightly more organized, I tackled the next unavoidable task: calling my doctor’s office to reschedule the appointment I missed. After a few rounds of phone tag, I finally reached the receptionist and booked a new appointment—for January.

Later than ideal? Absolutely.
Unsurprising? Also yes.

This is what happens when you miss an appointment—you go to the back of the line. While I assume my kidney function is holding steady at level four, it’s still reassuring to see the doctor regularly.

The app is still new to me, and I don’t yet know if it’s the solution. But my wife uses it. My friend uses it. I can even share progress with them, which adds a layer of accountability I probably need.

Cold weather remains.
Memory remains unreliable.
But today, at least, I built a system instead of relying on willpower.

And that already feels like a win.

Button-Free Brilliance: A Calculator That Doesn’t Judge Your Math

Day 29 of 100 Days Coding Challenge: Python

Have you ever stopped mid-calculation and thought, “Wait, how does this magic actually happen?” I mean, when I type “=SUM(A1:A5)” into Excel, I don’t pause to thank the spreadsheet gods. But today, I did. Mostly because I was tired of relying on apps, a Python calculator with history, and wanted to see if I could recreate the magic myself—with a twist. You see, I do most of my calculations on my phone or in a spreadsheet (because who has time to calculate sales tax manually?). But something about writing my own calculator in Python felt strangely empowering, like building a mini-math butler. And hey, once you’ve got this running, you can actually reuse it in all sorts of future projects. Nothing fancy—just a bit of logic, a few lines of code, and voilà: your own digital brain.

Today’s Motivation / Challenge

Today’s challenge was about demystifying the tool we all use but never think about—calculators. Behind that slick interface on your phone lies a surprisingly simple system. By building one ourselves, we not only learn how math works in Python, but we create a tool that’s instantly useful. Also, let’s be honest: there’s something satisfying about typing in 3 * (5 + 2) and seeing your own code proudly deliver the answer.

Purpose of the Code (Object)

This program lets you enter math problems (like 4 + 4 or 12 / 3) into a simple GUI window and gives you the answer. It also remembers every calculation you’ve done during that session, so you can scroll back and admire your math skills—or catch the moment it all went wrong. It’s like your phone calculator, but with less judgment and more transparency.

AI Prompt: 

Write a GUI-based calculator in Python with history tracking. It should evaluate expressions typed into an input box, display results below, and keep a scrollable history of all calculations.

Functions & Features

  • Accepts math expressions like 5 + 2 or 3 * (4 – 1)
  • Calculates and displays the result immediately
  • Keeps a scrollable history of all calculations
  • Handles syntax errors without crashing
  • Lets you clear the history with one click

Requirements / Setup

Just make sure you have Python 3 installed—nothing else needed.

# No pip install needed—just run the script

python gui_calculator_with_history.py

Minimal Code Sample

expr = entry.get().strip()

result = eval(expr, {“__builtins__”: None}, {})

This takes the user’s input, evaluates it safely as a math expression, and returns the result.

GUI Calculator with History

Notes / Lessons Learned

The program works surprisingly well—until you get cheeky. It’s text-based, which means it expects, well… math. If you type in your file name or something like >>> 2 + 2, it will blink at you and throw a syntax error. Why? Because it’s trying to evaluate whatever you typed as math. This is not a chatbot—it doesn’t care about small talk. It only wants 2+2, not your life story. So yes, it’s a bit rigid, like a teacher who only answers what’s on the test. But once you get used to that, it’s fast, reliable, and kind of fun. Also, building it made me realize just how often I rely on tools without knowing how they work under the hood. Now I do—and so do you.

Optional Ideas for Expansion

  • Add buttons for digits and operators to make it feel like a real calculator
  • Save calculation history to a .txt or .csv file
  • Add a dark mode toggle for extra flair and eye comfort

Dear Diary, You’ll Never Guess What I Encrypted Today

Day 28 of 100 Days Coding Challenge: Python

I’ve always kept a journal—both digital and analog. In fact, I still scribble in a notebook with a pen, even though my handwriting is the kind of cryptic mess that could double as a CAPTCHA test. But I’m oddly comforted by the idea that if someone tried to read it, they’d either go blind or start decoding it like a Cold War cipher. That said, I still remember the sheer horror of a sibling (yes, the nosy one) reading my diary out. Since then, I’ve had a deeply personal vendetta against unsecured journaling. So, I finally did it: I built my own diary app—with encryption. No prying eyes. No traumatic readings. Just me, my thoughts, and a very tight password.

Today’s Motivation / Challenge


Journaling is personal. Like, really personal. Whether you’re logging your feelings, goals, or that weird dream you had about sentient laundry, it deserves privacy. I wanted to make a journal that felt like a digital vault—simple to use, but impossible to crack without the key. And since I’m also practicing my GUI skills, I figured, why not make it look nice while I’m at it?

Purpose of the Code (Object)


This app is a private digital diary. You can write journal entries, save them securely, and read them later—only if you enter the correct password. It uses encryption to make sure no one but you can read what you’ve written, and it now includes automatic timestamps so you can look back and see exactly when you had that existential crisis.

AI Prompt:

Build a GUI-based personal diary app in Python that encrypts each entry using a password-based key. Include timestamped entries and secure storage using the cryptography library. Use tkinter for the interface.

Functions & Features

  • Password-protected access
  • Add new diary entries
  • View previously written entries
  • Each entry automatically includes a timestamp
  • Clean, scrollable GUI built with Tkinter

Requirements / Setup


To run this app, you’ll need:

pip install cryptography

Python version: 3.8 or higher recommended

Minimal Code Sample

timestamp = datetime.now().strftime(“%Y-%m-%d %H:%M:%S”)

full_entry = f”[{timestamp}]\n{entry}”

encrypted = cipher.encrypt(full_entry.encode())

This adds a timestamp to your diary entry and encrypts it before saving.

Encrypted Diary (GUI)

Notes / Lessons Learned

With the help of an AI prompt, building this script was surprisingly smooth—until I hit my first “I forgot to install the cryptography library” moment. Classic. Then came the part where the program asked me to set a password, but nothing appeared on screen. For a split second, I thought my keyboard had staged a walkout. Turns out, the password input was just being ultra-stealthy—so stealthy that I couldn’t see what I typed. But hey, that’s security. If you mess up your password confirmation, it makes you do it all over again. Fair enough.


Later, I decided to ditch the command line and build a GUI version. Because honestly, clicking buttons is more satisfying than typing commands, especially when you’re just trying to jot down how your day went. And I added timestamps—because every journaling tool I love (Notion, Obsidian) includes them, and they make going back in time feel like digital archaeology.


Honestly, if I’d had this kind of encrypted diary app when I was a teenager, I probably would’ve written about a hundred volumes of emotional drama—and no one would’ve ever been able to decode my secret crushes.

Optional Ideas for Expansion

  • Add a “Search by date” function
  • Export selected entries to a readable .txt file
  • Add light/dark mode toggle for late-night journaling vibes

A Very Bad Fitness Day (With Lessons Included)

Brian’s fitness journal after a brain stroke

Today was—how shall I put this—an unqualified disaster.

It began badly and showed no interest in improving. When I woke up, it was literally freezing outside, and I spent the entire morning dreading my usual run. Cold has a way of turning motivation into theoretical knowledge.

Before even getting to the run, I failed at completing my planned number of dips and leg lifts. That’s usually a sign that I’ve hit my current limit. Not “I’m lazy” failure—more “the muscles have voted and the motion did not pass” failure.

Sometimes my muscles simply don’t repair fast enough. Because of my kidney condition, I’m on protein restriction, which means muscle recovery takes longer than it does for the average man. I already space out resistance workouts by several days for this reason. Today was just not the day to push the number. I’ll try again next week. No drama—just biology.

Then came the plot twist.

My wife popped into the room and asked, very calmly, whether I needed to go to my nephrologist today.

Today?

Yes. Today.

Just like with my dentist appointment the other day, I had completely forgotten about it. I was convinced the appointment was tomorrow. My wife, working from home, had noticed that I was still very much at home when I shouldn’t have been.

This one felt bad.

Missing a nephrology appointment isn’t ideal, especially when you’re actively monitoring kidney disease. My wife had driven me to the lab a week earlier specifically to prep for this visit. If something were abnormal, the doctor would call early—but still, forgetting the appointment wasn’t okay. I immediately called the office and reached the answering machine, which did nothing for my guilt.

My wife looked worried. That part stung the most.

Logically, I knew that if there were serious lab abnormalities, the office would have contacted me already. Emotionally, I still felt like I’d dropped the ball—again. Clearly, I need a stronger system. The solution is probably simple: checking my calendar needs to become part of my morning phone routine, right alongside language lessons and weather checks.

And just to complete the full bingo card of disappointment: I also failed to hit my target running pace.

Cold weather and speed do not get along. At all. I finished the run, but not at the pace I wanted. At least Friday and Saturday should be less hostile—still cold, but no longer actively threatening.

So yes. Today was rough.

But days like this still teach something. I need to be better at:

  • respecting recovery limits
  • managing appointments
  • planning around cold weather
  • and keeping my systems tight when my brain decides to freelance

As always, the goal isn’t perfection.
It’s improvement—one repaired habit, one rescheduled appointment, and one tolerable run at a time.

Tomorrow gets another chance.

How to Build a Simple Python Chatbot (No AI Required!)

Day 27 of 100 Days Coding Challenge: Python

About a year ago, I was trying to get help from a state government website—you know, the kind that promises “24/7 assistance” via a chirpy chatbot. Except, instead of assistance, I got a face full of code errors. Repeatedly. The bot was supposed to reduce agent time, but apparently, it had decided to take a permanent coffee break. I asked nicely, refreshed, and even pleaded. Nothing. That little robot ghosted me.

Naturally, I got curious—how hard could it be to build a simple chatbot that actually responds? And here we are: this is not some ultra-sophisticated AI oracle; this is a humble, pre-AI chatbot. No deep learning, no fancy brain. Just old-school logic and a love for the “if-else” life.

Today’s Motivation / Challenge

Today’s challenge is nostalgic. We’re going back to a simpler time—before neural networks and hallucinating chatbots—when your digital assistant was more rule-follower than mind-reader. This project connects to that curious urge we all get when tech breaks: “Could I make something that works better than this?” Well, maybe. Today’s your chance to try.

Purpose of the Code (Object)

This code creates a chatbot that responds to common phrases using plain, predictable rules. It doesn’t learn, guess, or improvise. Instead, it listens for keywords and responds accordingly—like a polite robot butler who doesn’t like surprises.

AI Prompt

Build a rule-based chatbot in Python that recognizes user input using keyword matching and gives relevant responses about greetings, time, weather (simulated), jokes, and simple math. Add a fallback response for anything it doesn’t understand.

Functions & Features

  • Recognizes greetings, goodbyes, and help requests
  • Simulates a weather response (pure imagination)
  • Tells the current time using your system clock
  • Solves basic math expressions (like “What is 3 + 5?”)
  • Tells a (very polite) joke
  • Politely admits confusion when it doesn’t know what you said

Requirements / Setup

  • Python 3.x
    (No external libraries are needed—just plain Python)

Minimal Code Sample

if “time” in user_input:

    current_time = datetime.datetime.now().strftime(“%H:%M:%S”)

    return f”The current time is {current_time}.”

Checks if the user asked for the time and responds with the current system time.

Rule Based Chatbot

Notes / Lessons Learned

The first basic chatbot worked great. So naturally, I got ambitious. I layered on more logic, more keywords, and more “features.” That’s when it happened: chaos. The code refused to run. I suspected a directory issue—maybe I saved the file in the wrong place? Nope. The file was there. It was my code that was broken, all because of one sneaky extra quote at the end of a string.

Lesson? Python is picky about quotation marks—and for good reason. Mixing ” and ‘ or doubling up can cause a silent meltdown. Also, watch your syntax coloring. If your code suddenly lights up like a Christmas tree, it’s probably not because you’re a genius. It’s because something’s off.

Also, rule-based bots are loyal but very literal. Misspell one keyword—like typing “wether” instead of “weather”—and it freezes like a deer in headlights:

“Hmm… I’m not sure how to respond to that. Try saying ‘help’.”

Still, there’s something rewarding about building a little machine that answers you. In fact, I’m now dreaming of creating a text-based adventure game where the chatbot acts as the narrator and dungeon master. Primitive? Yes. Promising? Absolutely.

Optional Ideas for Expansion

  • Add real weather data using an API like OpenWeatherMap
  • Allow fuzzy matching so it understands similar words or typos
  • Turn it into a text-based game with branching dialogue

Passwords, Please: Why Your Cat’s Name Isn’t Good Enough

Day 26 of 100 Days Coding Challenge: Python

As someone who is doing accounting for a living—and not just the easy kind, mind you, but the multi-state, bank-reporting, ERP-wrangling kind—I juggle more passwords than a magician with trust issues. At last count, I had around near 20 different passwords scattered across platforms like SAP, Microsoft, banks, state websites, and yes, even the mysterious beast that is Windows.

Now, an ERP system like SAP doesn’t mess around. It demands long, complex passwords that look like someone accidentally fell asleep on the keyboard. So, I figured—if I can understand how these systems judge password strength, maybe I can outsmart them. Or at least, use the same logic to fortify my Amazon or bank logins. I mean, no one’s hacked me (yet), but why wait for disaster when I can beat the bots at their own game? Today’s mission: test the strength of my passwords using Python. Because if I can calculate depreciation schedules, I can definitely calculate how weak “Fluffy2021!” really is.

Today’s Motivation / Challenge

Let’s face it—most of us are one sticky note away from giving up on remembering our passwords. That’s what makes today’s project kind of brilliant: instead of memorizing 27 variations of “qwerty123!”, we’re learning to evaluate passwords for strength. It’s a practical tool with just enough spy-movie flair to feel exciting. Plus, there’s something satisfying about making a program that judges your passwords before a hacker does.

Purpose of the Code (Object)

This simple program acts like a personal password bouncer. You hand it a password, and it tells you whether it’s weak, moderate, or strong. It does this by checking for things like length, numbers, special characters, and uppercase letters—basically the same stuff most secure systems look for, minus the scolding tone.

AI Prompt:

Create a Python program that evaluates password strength based on length, use of uppercase and lowercase letters, digits, and special characters. Return a score and give user-friendly feedback.

Functions & Features

  • Checks password length and gives points accordingly
  • Evaluates if you used uppercase + lowercase letters
  • Looks for numbers and special characters
  • Provides a strength rating: Weak, Moderate, or Strong
  • Offers suggestions to improve your password

Requirements / Setup

You’ll need:

Python 3.x

No extra libraries needed. Just plug and play.

Minimal Code Sample

import re

def check_strength(pwd):

    score = 0

    if len(pwd) >= 12: score += 2

    if re.search(r'[A-Z]’, pwd) and re.search(r'[a-z]’, pwd): score += 1

    if re.search(r’\d’, pwd): score += 1

    if re.search(r'[!@#$%^&*]’, pwd): score += 1

    return score

This snippet scores a password based on length and character variety.

Password Checker GUI

Notes / Lessons Learned

The program was surprisingly easy to write—and even easier to obsess over. It’s just a few if-else checks and a running score tally, but the real fun starts when you feed in your actual passwords. I tried mine. Every single one came back as “Moderate.” Not “Weak,” which was a relief, but not “Strong” either. Apparently, I’m living in the password middle class. Turns out, all I need is a few more letters or symbols to boost my score. So maybe it’s time to retire “Fluffy2021!” and embrace something like “S@pTaxQueen2025.” Catchy, no?

Optional Ideas for Expansion

  • Add a live strength meter (green/yellow/red bar) using Tkinter for a GUI
  • Store password feedback history in a CSV for tracking

Ending It Nearly Completed All Tasks With Time Management Skills

Brian’s fitness journal after a brain stroke

Today, I forced myself out of bed—feeling surprisingly rested and recovered—but immediately remembered one inconvenient truth: it was cold. Very cold. Cold enough to make running sound like a poor life choice. Still, I started my day on time.

I checked the weather app and plotted the optimal moment for my run like a general preparing for battle. Cold-weather gear would be required, but I could afford to wait a bit for marginally better conditions. Unfortunately, waiting too long wasn’t an option—I had a long list of chores left over from yesterday.

Thanksgiving 2025 was a genuinely lovely family gathering. The food was excellent. The company was even better. But holidays have a way of borrowing time from the future, and today was the repayment day. With a full slate of chores waiting, time management suddenly mattered a lot.

Despite my worry that I’d overworked the evening after returning from my sister’s house yesterday, I managed to power through. As soon as we got home, I transferred clothes from the washer to the dryer, then went upstairs to finish the dishes while the kombucha water boiled. Multitasking isn’t glamorous, but it’s effective.

Once those tasks were underway, I checked the dryer timer and realized I had just enough time to eat a piece of leftover pizza before the next wave of responsibilities arrived. On days like this, I have to work systematically—doing the task that fits into the gaps while something else runs in the background.

When the laundry finished, I folded and put away everything except the sheets. Those had twisted themselves into an impressive knot and hadn’t fully dried, so they earned another spin in the dryer and a postponement until tomorrow. At that point, the sheer volume of tasks was starting to feel heavy.

By the time I finally stopped moving, I was completely exhausted and very ready for sleep.

My Time Management Method

To manage days like this, I rely on task chains—doing one thing that naturally leads to the next—so I don’t have to hold everything in my head at once. These are coping strategies I’ve learned since my brain stroke. When your brain has been injured, remembering things isn’t automatic. Systems matter.

Out of curiosity, I checked on my wife. She’s been off since Wednesday and will be until the end of the week, which usually means more chores—not fewer. But she had already completed most of her tasks yesterday, knowing how packed the week before our family gathering had been. Planning ahead: her specialty.

I’m still working on my time-management skills. But today, I got most of what needed to be done—and that’s good enough. The rest can wait until tomorrow. Progress doesn’t always look energetic.
Sometimes it looks like finishing the day tired—and still satisfied.

Shrink Me, Baby, One More Time

Day 25 of 100 Days Coding Challenges: Python

When I post a blog, there’s always that option to clean up the slug and make the URL look like it spent a summer at finishing school. I’ve done it occasionally—shortened a few links here and there like trimming bangs on a whim—but I never committed. I wasn’t sure if it really made a difference, or if I was just breaking up with my beautifully descriptive blog titles for no good reason.

But here’s the thing: shorter URLs are easier to share, easier to remember, and—let’s be honest—they just look more confident. Like a blog post that walks into a party and knows exactly where the snacks are. How about I create my own Python URL shortener script?

So I stopped overthinking and built a Python script to handle URL shortening. It’s a humble subroutine for now, but it could easily become part of a larger “Blog Publishing Flow”—one that’s as sleek as my ambition to automate everything, including procrastination.

Today’s Motivation / Challenge

Ever copy-paste a long blog URL into a text, only to watch it stretch across the entire message like it’s trying to steal the spotlight? Me too. Today’s challenge was about making my blog links compact and elegant—like a haiku for URLs. Plus, I wanted a reusable, no-fuss script I could tuck into my content workflow.

Purpose of the Code (Object)

This little Python script takes a long URL and turns it into a neat, short version using the TinyURL service. It’s a great way to tidy up links before sharing them on social media, email newsletters, or in text messages to your less tech-savvy relatives who panic when they see a string with too many slashes.

AI Prompt:

Create a Python script to clean up my URL code.

Functions & Features

  • Takes any valid URL and returns a shortened version
  • Uses the TinyURL API (via pyshorteners) to handle the shortening
  • Simple enough to run as a subroutine in a larger automation flow

Requirements / Setup

pip install pyshorteners

Works on Python 3.6 and above.

Minimal Code Sample

import pyshorteners

def shorten_url(long_url):

    return pyshorteners.Shortener().tinyurl.short(long_url)

# Example usage:

print(shorten_url(“https://yourblog.com/very/long/descriptive/link”))

This function takes your long-winded link and trims it into something social-media-ready.

Console URL Shortener

Notes / Lessons Learned

I tested it using one of my husband’s blog posts:
https://kaizennekoproject.com/the-case-of-the-missing-kilometers-a-summer-running-mystery/
It transformed into:
https://tinyurl.com/2y8vt6v5

Yes, it’s shorter—but now I can’t immediately tell what the post is about: running, whether rue crime; or a mileage-based ghost story.

And then the SEO question popped into my head like a banner ad: Does a shorter link help me show up in search results? Spoiler: probably not—at least not when using a third-party shortener. I still have some investigating to do. But the code itself? It works. And sometimes, finishing something is more satisfying than overthinking it.

Optional Ideas for Expansion

  • Add a clipboard copy feature to automatically copy the short URL
  • Let users choose their shortener service (e.g., Bit.ly, is.gd)
  • Build a simple Tkinter GUI for those who like buttons more than typing