Python Part 4 — If Statement, Else and the ‘Elif’

In this tutorial, we will learn about the if-statement and how to perform different scenarios in our code based on a certain condition.

We will learn these concepts while solving a small problem.

In part one of the series we installed Python, in part two we installed VS Code and wrote our first program and in part three we learned about variables and how to read inputs from users of our application.

Our problem for this tutorial is about calculating the price of a flight ticket, where the flat…