-1

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

picture

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): ")

main()
techraf
  • 64,883
  • 27
  • 193
  • 198

1 Answers1

1

Change:

print ("The commission is: "),commission

To:

print ("The commission is: ", commission)
Erba Aitbayev
  • 4,167
  • 12
  • 46
  • 81
  • 3
    @polskiebmw: On this site, show your appreciation by upvoting all the useful answers. You do that by clicking the up-arrow at the top-left of the answer. In addition accept the best answer by clicking the checkmark near the top-left of the answer. That is better than saying thanks in a comment. It also helps others to see your question was answered. – Rory Daulton Sep 24 '16 at 21:40