I develop for my career, but I also develop for fun, and whenever I think it can solve a problem I'm having. This has lead me to create side projects, such as Rental Map and BusTimes, among others.
Here are 3 examples of using if statements in python.
This first example takes 1 variable, and checks it
against 3 different conditions. Specifically, it checks if the input is negative,
positive or 0.
This second example takes 1 variable, that is an hour
of the day in 24 hour clock, and describes if it is morning, noon, afternoon, evening,
night, or midnight.
This third example takes in 2 different variables,
and says which one is bigger, or if they are the same.