--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.
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.
Here is how the program works if the user has more money than the cost of the product.
Here is how the program looks if the user doesn’t have enough money to buy the product.
I learn about this function using the Basic Python 3 course at Lynda.com
Thank you for reading me.