Saturday, August 2, 2025

Today’s session was both challenging and fun! We explored loops, data types, string manipulation, and even wrote a small survey program — all essential tools for automation testing.


๐Ÿ’ป What We Did Today

๐Ÿ”น Reviewed if-elif-else

We started by revisiting if, elif, and else — understanding how Python makes decisions based on different conditions.

๐Ÿ”น Loops: While vs For

Then came loops! We explored both while and for loops — how they work, where they’re useful, and how to break out of them when needed.

๐Ÿ”น Iterable & Non-Iterable Data Types

This was new — we learned which data types can be looped through (like list, tuple, set, dictionary, and string) and which cannot.

๐Ÿ”น String Comparison & Manipulation

We played around with Python’s string methods like .upper(), .lower(), .replace(), and in to compare, modify, and clean text.

๐Ÿ”น Ctrl + C for Loop Interrupt

It was interesting to learn how to manually stop a program using Ctrl + C, especially when working with endless loops during testing or debugging.


๐Ÿงช Assignment: Python Survey Program

For our mini project today, we wrote a Python survey program using a while loop.

It asked users about their favorite games, fruits, or dishes, and continued collecting input until the user typed "exit".
This combined several things we’ve been learning — loops, input handling, string logic, and flow control. A great real-world practice task!


๐Ÿค Interaction with Mentor

We had a helpful chat with our mentor, who explained how loops and data structures are used to build data-driven QA test cases.
It’s not just about writing code — it’s about thinking like a tester.


✨ My Reflection

Today’s session unlocked a whole new level in Python. Understanding how to repeat tasks with loops and process collections of data with precision feels like a big step forward. I can already imagine how useful this will be when writing automated test scripts.

Excited for what’s next in this journey!

Thanks for reading — catch you in Day 6’s post ๐Ÿ˜Š
— Sulav

0 comments:

Post a Comment