Week 2 – BALT 4363 – Python Data Manipulation


This week, I focused on Chapter 2 of the Data Toolkit, which introduced the core control structures in Python: loops and conditional statements. These tools act like the “remote control” of a program, they tell Python how to move through data, make decisions, and repeat actions automatically. Even though these concepts are fundamental, the chapter explained them in a way that connected to real-world situations and examples, especially with the car analogy for loops and the decision-based examples for conditionals. Understanding these structures is key because they form the backbone of almost every data manipulation task, whether filtering a dataset or building an interactive program.

I practiced using for loops, while loops, and if/else statements, and I learned how indentation plays a huge role in Python’s structure. The chapter emphasized that indentation isn’t optional—it’s how Python knows what belongs to a block of code. Running the examples in Google Colab helped reinforce that flow, especially when I typed code incorrectly and immediately saw how formatting affected the result. I also enjoyed the hands-on exercises, like printing numbers, checking if values were even or odd, and working with a mini guessing game that combined loops, conditionals, and user input. Trying that final exercise made everything click because it showed how these elements all work together.

Comments

Popular posts from this blog

Week 5 – BALT 4363 – Probability & Statistics for Data Science

Week 6 – BALT 4363 – Exploring Replit & AI-Powered App Building

Week 3 – BALT 4363 – Data Cleaning and Handling with Python