OHHHHHHHHHHHHHH H I FIXED IT!! YAY!!
I see what I was doing wrong
I had:
subtotal= shirts * amount * 0.20
percentage= shirts * amount * 0.20
when actually suppose to be:
subtotal= shirts * amount
percentage= shirts * amount * 0.20
oh gee I feel soooo sillyyyyy.
Thank you so much for taking time to help me. I highly appreciate it.
User Profile
Collapse
Profile Sidebar
Collapse
yumiyay
Last Activity: Sep 19 '14, 02:24 AM
Joined: Sep 6 '14
Location:
-
yep yep I am using python 3.x
and yep yep I have tried both with parenthesis and without.
I changed my code to this:
shirts=12.99
amount=float(in put("How many shirts would you like to purchase?"))
subtotal= shirts * amount * 0.20
percentage= shirts * amount * 0.20
total= subtotal - percentage
print (total)
when I print (subtotal)...Leave a comment:
-
-
thank you again for the help. I really appreciate it.
I did as you said, all i got back is:
print subtotal, percentage, total
^
SyntaxError: invalid syntax
here is the code i put:
shirts=12.99
amount=input("H ow many shirts would you like to purchase?")
subtotal= shirts * amount * 0.20
percentage=...Leave a comment:
-
thank you. But i encountered another problem. doing so i get:
How many shirts would you like to purchase?6
Execution Successful!
it still doenst give me the total I needLeave a comment:
-
Help please? TypeError: can't multiply sequence by non-int of type 'str'
HELP please?
Im new to python. I made this code but I keep getting:
subtotal= 'shirts' * 'amount' * 0.20
TypeError: can't multiply sequence by non-int of type 'str'
the code is:
shirts="12.99"
amount=input("H ow many shirts would you like to purchase?")
subtotal= 'shirts' * 'amount' * 0.20
percentage=...
No activity results to display
Show More
Leave a comment: