IF you are awesome read this, ELSE go away.

--Originally published at Hackerman's house

I created an awesome program that uses the function IF and the function ELSE. It can be used to determine if one input is bigger than other. These inputs are related to the cost of a product, and the money a person can expend.

giphy (3)

There are 2 ways of using the functions if and else. In separate lines, and in the same line. Both ways are used in my program, each one show one sentence as an answer to the user.

If, else

Here is how the program works if the user has more money than the cost of the product.

IF yes

Here is how the program looks if the user doesn’t have enough money to buy the product.

IF no

I learn about this function using the Basic Python 3 course at Lynda.com

Thank you for reading me.

giphy (4)