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