#INPUT NUMBER OF APPLES WANNA BUY Apples = 7 #COST PER APPLE Cost = 3 #THIS IS YOUR MONEY Money = 50 MoneyNeeded = Apples * Cost if MoneyNeeded > 20: MoneyNeeded = ( Apples * Cost ) - 5 else: MoneyNeeded = Apples * Cost print(" ____________") print(" | |") print(" | Apple Shop |") print(" |____________|") print() print(" NEW DEAL:") print(" SPEND > $20 WE TAKE $5 OFF") print("") print(" MoneyNeeded & Apples Bought") print(" ---------------") print(" $",MoneyNeeded) print(" ", Apples, "Apples") print(" ---------------") print("") if MoneyNeeded > Money: print(" Not Enough Money") else: print(" Enough Money ")
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter