Today’s Python session was both practical and enlightening — a great mix of coding practice and conceptual understanding. We’re now exploring how real logic works behind automation, and today’s class gave us plenty of hands-on experience.
💻 What We Did Today
Here’s a breakdown of the key topics we tackled during today’s session:
🔹 Decision-Making with if, elif, else
We learned how to use if
, elif
, and else
statements to build decision-making logic in Python. These are essential for controlling how a program responds to different situations.
🔹 Taking User Input
We practiced capturing user input and ensuring the correct data types were used. It's a critical part of writing functional scripts — especially when inputs affect conditions or calculations.
🔹 Importance of Indentation
Today really emphasized how indentation works in Python. Without proper indentation, the interpreter simply won’t understand which lines belong together — and that’s a huge deal when it comes to writing reliable test scripts.
🔹 math Module
We explored Python’s built-in math
module and used its functions within our code. It’s handy for calculations and helps keep our logic clean and readable.
🔹 Writing a Calculator
We wrapped up the session by writing a basic calculator program. It took input from users, applied decision logic, and used conditionals to perform addition, subtraction, multiplication, or division — all in a neat, functional script.
🧠 What I Learned
✅ How to use conditional statements (if, elif, else) in real code
✅ The impact of proper data types on flow control
✅ How crucial indentation is for code structure in Python
✅ How to use the math
module for basic functions
✅ How to build a simple calculator from scratch using everything above
✨ My Reflection
Today was one of those classes that connected the dots between writing code and understanding how test scripts work in real-world QA environments. Even something as simple as missing a space can break a script — and now I truly get why attention to detail matters.
Every line of code is a step forward — and with each class, I’m feeling more confident in this QA journey.
Thanks again for following along — I’ll be back tomorrow with another update.
See you in Day 5’s post 😊
— Sulav
0 comments:
Post a Comment