[英]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): ") main()
Change:改变:
print ("The commission is: "),commission
To:到:
print ("The commission is: ", commission)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.