# My Week 7 @ Blockfuce Labs Learning Python This week in Python class was really exciting because we dived into three important topics that every programmer uses: comparison operators, logical operators, and lists. These concepts made me realize how powerful Python can be when it comes to making decisions and handling multiple pieces of data at once. ### 1. Comparison Operators – Asking Python Questions Comparison operators help us compare values. They ask Python questions like, β€œIs this equal to that?” or β€œIs this number bigger than that one?” and Python always answers with either True or False. πŸ‘‰ Some comparison operators I learned: * == β†’ Equal to * != β†’ Not equal to * > β†’ Greater than * < β†’ Less than * >= β†’ Greater than or equal to * <= β†’ Less than or equal to βœ… Example: ![image](https://hackmd.io/_uploads/rJ_hj4fwgx.png) ### 2. Logical Operators – Combining Conditions Logical operators allow us to combine multiple conditions into one decision. This is useful when a program needs to check more than one thing at the same time. πŸ‘‰ The three main logical operators are: * and β†’ True only if both conditions are true. * or β†’ True if at least one condition is true. * not β†’ Reverses the condition (True becomes False, and vice versa). βœ… Example: ![image](https://hackmd.io/_uploads/r1tzOVfDgg.png) This helped me understand how programs can make complex decisions, like checking if someone is old enough and has an ID before entering a movie. ### 3. Lists – Storing More Than One Thing Lists are like containers in Python – they let you store multiple values in one variable. I was amazed that lists can hold numbers, words, or even other lists. ![image](https://hackmd.io/_uploads/H1Y2O4fwxe.png) πŸ‘‰ Some of the things I learned to do with lists: **To Add items:** *fruits.append("orange")* **To Remove items:** *fruits.remove("banana")* **To Access by position (index):** *print(fruits[1]) # prints 'banana'* ### In conclusion: Week 7 taught me how to make my code look more organize * With comparison operators, I can ask Python questions. * With logical operators, I can combine those questions to make smarter decisions. * And with lists, I can store and work with many pieces of information at once. * I feel like I now have more tools to write Python programs that are smarter, cleaner, and more interactive. Stay tuned for more weekly updates from my time at Blockfuse Lab, Jos! **#BlockfuseCohortIII #Web2 #SoftwareEngineeringJourney**