Can someone tell me why my nothing happens when i execute my program. Here is my code and output:
Copyright © 2009 Microsoft Corporation. All rights reserved.
C:\Users\AdminB>cd\code
C:\Code>python sales.py
How many candies would you like? 1
C:\Code>
total_cash=0 total_owed=0 total_candy=20 input_var=input("How many candies would you like? ") if input_var == 1: Â Â Â total_cash = total_cash + 40 Â Â Â total_candy = total_candy - 1 Â Â Â print (total_cash) Â Â Â print (total_candy)Microsoft Windows [Version 6.1.7601]
Copyright © 2009 Microsoft Corporation. All rights reserved.
C:\Users\AdminB>cd\code
C:\Code>python sales.py
How many candies would you like? 1
C:\Code>
Moderator Larz60+: Added Python tags. Please do this in the future (see help, BBCODE)