Skip to content

Instantly share code, notes, and snippets.

@Spockky
Spockky / Item calculator
Created February 16, 2017 19:47
Python program that calculates the final price of an item after asking the user if there is an in-store discount and if they have a coupon.
# module calculate_store_discount() is where I am having issues. I also tried linking original_price()
# to calculate_store_discount() so I wouldn't have to have the user re-enter. The in_store_discount()
# and calculate_store_discount() are going to be 'duplicated' with variables relating to the
# coupon inputs and calculation ( calculate_coupon(), coupon_discount() ). Another module is going to
# be created to calculate the final price after I figure out what my hang up is with the math.
def main():
welcome = welcome_message()