Day 3 was all about text. If you want to build a chatbot, text is your primary material. You need to know how to clean it, parse it, match it, and store it so your program doesn't break every time someone types with weird capitalization.

1. Lists and Dictionaries for Chat Memory

We looked at two fundamental Python data structures: Lists (great for keeping an ordered log of messages) and Dictionaries (perfect for key-value pairs, like linking a keyword like 'pricing' to a canned answer). This is the foundation of every simple chatbot.

2. Cleaning Messy User Text

Real people type chaotically. They type in ALL CAPS, add three exclamation marks, or leave trailing spaces. We practiced methods like .lower(), .strip(), and substring checks ('if "help" in user_input'). Cleaning text first means your bot doesn't fail just because someone typed 'Hi' instead of 'hi'.

3. Sixty-Second Chatbot and the Whiteboard Session

For our lab task, Rashmi gave the cohort one hour to build a working terminal chatbot with multiple responses. I finished writing mine in about sixty seconds, so I spent the remaining time helping nearby classmates debug syntax errors. Seeing how fast I wrapped it up, Rashmi handed me a marker and asked me to go up to the whiteboard to teach file handling and while-loop structures to the class.

Standing at the whiteboard in front of the whole room was a cool challenge. I sketched out the loop logic and wrote out clean Python code. Rashmi helped adjust a few lines so the beginners could digest it easily. Teaching someone else is the ultimate test of whether you really understand your code.

Key Learnings

  • Using dictionaries for instant keyword-to-response matching in chatbots.
  • Cleaning messy user inputs using .lower(), .strip(), and string formatting.
  • Structuring conversational loops that run smoothly without crashing.
  • Explaining technical code clearly on a whiteboard in front of a group.

Tools & Stack

  • Python 3.11
  • VS Code
  • Terminal
  • Whiteboard

Challenges Overcome

  • Explaining technical programming concepts in plain words that beginners can follow.
  • Handling unexpected user inputs when none of the dictionary keywords match.

Task to be Performed

  • Practice Python string manipulation methods on raw text.
  • Build a rule-based terminal chatbot that responds to greetings, questions, and exit commands.
  • Lead a whiteboard walkthrough explaining file handling and loop logic to the cohort.

Related Logs

Day 00

Day 00: Onboarding, Orientation, and the 2-Week AI Roadmap

Walking into Virtual Height for day zero: getting our badges, meeting our lead mentors, and mapping out what we will build over the next two weeks.

May 29, 2026 • 4 min readRead Log ➔
Day 01

Day 01: First Day as an AI Intern, Python Basics, and a Wild Flex

Day 1 kicks off with lead mentor Rashmi. We break down AI vs ML vs Deep Learning, test Python terminal scripts, and demo my custom chatbot to the room.

Jun 01, 2026 • 4 min readRead Log ➔