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 »
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 »
In our previous article, we looked at what APIs are and what they are used for. In this article, we will create a simple Python program that fetches some data from an API and displays it for us. We will fetch some currency exchange rate data from an API. I chose exchange rate data because… Read More »
A lot of modern programming requires the use of an API of some sort. What is an API? API stands for Application Programming Interface. This is basically an interface (a portion of software that is placed between two systems) that allows programs outside that software to interact with it. For example, you may develop some… Read More »
USD to KES Exchange Rates. Years 2000 to 2023. Historical data retrieved via API from ExchangeratesAPI.io using Python. Plotted using Matplotlib.
I am in a number of Python (programming language) groups on Facebook. One very common question in those groups is “Where can I learn Python?” I assume that people also ask this question outside Facebook, so here is a list of free resources to learn Python (and other technologies) for beginners. The list is not… Read More »