polskiebmw polskiebmw - 1 year ago 64
Python Question

Python code output isn't displaying properly

My code seems fine but when i run it and input the sales it wont show the commission.


this is python btw.

keep_going = "y"

while keep_going == "y":
sales = float(input("Enter the amount of sales: "))
comm_rate = 10

commission = sales * comm_rate

print ("The commission is: "),commission

keep_going = input("Do you want to calculate another commission? (Enter y for yes): ")


Answer Source


print ("The commission is: "),commission


print ("The commission is: ", commission)
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download