Monthly Archives: July 2023

Help! My Else Clause Does Not Execute!

Sometimes people write code with if/else statements, but the else statements never execute, regardless of what they type in to be checked in their conditions. Let us consider two examples of such cases. I will use Python to illustrate the points. Scenario 1: if a or b user_answer = input(“Do you want to continue? y/n:… Read More »

Getting Started With APIs – Bonus Tasks

The Story So Far In our first article in this series, we looked at what APIs are and what they are used for. In the second article, we wrote a simple Python program that fetches some data from an API. In this article, we will introduce a loop, so that we can get historical data… Read More »