Blog Post #17: String Magic: An Introduction to Concatenation

In Post #16, we encountered a surprising behavior. When we tried to add two numbers received from input(), our program produced “57” instead of 12. We learned this happened because the + operator, when used with strings, doesn’t perform mathematical addition—it joins them together. This process has a formal name: concatenation. In this post, we’ll … Read more

Blog Post #13: Beyond the Basics: Exploring Advanced Operators (//, %, **)

In Post #12, we covered the four fundamental arithmetic operators that handle everyday calculations. But Python’s mathematical toolkit doesn’t stop there. It includes several advanced operators that allow us to solve more specific and interesting problems with ease. In this post, we’ll explore three of these powerful operators: floor division (//), the modulus operator (%), … Read more