There are always many ways to solve the same problem when programming, it's either you use the repetitive way or maybe consider the smart way ( cause you actually should 🤞🏽). I Built a mini quiz , in this stage I figured out I could write the same if/else block for every single question , it works, but 4 questions means 40 lines of code. Or I could just store my questions in a list, loop through them once, and the whole thing runs in 10 lines regardless of how many questions I added. Same output, same logic, just one scales infinitely and one doesn't. That for me is the difference between code that works and code that thinks. #Python #Programming #AiProductEngineering

To view or add a comment, sign in

Explore content categories