well first off, confirm that this is the correct indentation:
Code:
def main():
endOrder = "no"
while endOrder == "no":
totalBurger = 0
totatlFry = 0
totalSoda = 0
endOrder = 'no'
while endOrder == 'no':
print 'Enter 1 for Yum burger'
print 'Enter 2 for Yum Fries'
print 'Enter 3 for Yum soda'
item = input ('Enter now -> ')
if item == 1:
totalBurger = getBurger (totalBurger)
elif item == 2:
totalFry = GetFry (totalFry)
elif item == 3:
totalSoda = getSoda (totalSoda)
else:
print 'try again'
endOrder = raw_input ('Are you done with your order? ')
totalBill = calcTotal (totalBurger, totalFry, totalSoda)
print ('Your total bill is')
def getBurger(totalBurger):
burgerCount = input ('Enter the amount of Yum burgers You would like')
Enter - 1
print ('Enter the number of burgers you want')
totalBurger = burgerCount + totalBurger * .99
return totalBurger
def getFry(totalFry):
fryCount = input ('Enter the total number of fries you would like ')
totalFry = fryCount + totalFry * .79
return totalFry
def getSoda(totalSoda):
sodaCount = input ('Enter the total number of soda you would like ')
totalSoda = sodaCount + totalSoda * 1.09
return totalSoda
def totalBill(totalBurger, totalFry, totalSoda):
calcTotal = totalBurger + totalFry + totalSoda
return totalBill
main()
Bookmarks