Can someone tell me why my nothing happens when i execute my program. Here is my code and output:
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>
1 2 3 4 5 6 7 8 9 |
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) |
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)