Question: Working on Python program and this is the code. When I run it, the second and third lines repeat themselves and that's not suppose to

Working on Python program and this is the code. When I run it, the second and third lines repeat themselves and that's not suppose to happen. Would like to know what I'm doing wrong within the code. A loop is suppose to happen within the program but the second and third lines shouldn't repeat themselves.

Working on Python program and this is the code. When I run

it, the second and third lines repeat themselves and that's not suppose

to happen. Would like to know what I'm doing wrong within the

code. A loop is suppose to happen within the program but the

File Edit Format Run Options Window Help count 0 total 0 tota!Discount = 0 customerName input ("Please enter name. Enter quit to stop.") while customerName.lower() != "quit": Op Edif Hist ess Properties pounds float (input ("Please enter pounds of chocolate purchasing?")) items float (input ("Please enter amount spent on other items? ")) Open if pounds -30 and items >= 30: discount items 0.2 print ("discount ", discount, "m) totalDicount totalDiscount + discoun hon File on File on File total round (total + custBill, 2) rosoft PowerP. ficrosoft PowerP print ("Total pounds of chocolate sold were: pounds) print ("Total amount spent on chocolate was: ", COst) print ("Total spent on other items: ", items) print ("Customer total bill is: " customerNameinput ("Please enter name. Enter quit to stop.") print ("Customerpotalot all bilis is: s", total) print ("Number of customers were, count) average round (total/count, 2) print ("average is: , average) print ('Total pounds of chocolate sold:", totalFounds) print ("Total discounts given:", Microsoft PowerP crosoft Word D... licrosoft Word D... cresoft Word D.. total) icrosoft Word D... totalDiscount) Make changes to your su O Type here to search

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!