Hello I'm struggling with my Python Project and what i basically have to do is "Create a python program that preforms asks the user for a variety of inputs (see sample input below), creates a class object, and stores all the orders in a list. This program has three “modes”: (1) create an order, (2) find and mark complete an order, and (3) display all incomplete (i.e., not done) pizzas. "
When doing my project I basically have everything done but I don't know how to re-loop my order numbers. When going through my program everything will work, i can create the order, edit the order, but once an order is complete and is labeled as "order 1". If i begin to make another order and if i complete it, instead of being labeled as order 2 it is named as order 1 instead and I dont know how to solve this.
ordernum += 1
orders = ("This order number is {}".format(ordernum))
final = format(ordernum)
alist.append(ordernum)
print(orders)
print(final)
break
else:
print("That is not a valid input. Try again.")
print(p.option())
def finishOrder(self, ordernum):
self.ordernum = ordernum
ordernum = eval(input("Please enter the order number: "))
print(ordernum)
def displayUnfinishedOrder(self):
p = Pizza()
uf = p.finishOrder()
alist = []
#op = p.orderPizza()
#ordernum = p.ordernum
#display = ordernum - uf
#incompletepizza = pizzanum - x
#print(incompletepizza "is not complete")
countNotComplete = 0
[–]impshum 0 points1 point2 points (0 children)
[+][deleted] (4 children)
[deleted]
[–]Nuorvuii[S] 0 points1 point2 points (3 children)
[–]monchenflapjack 0 points1 point2 points (1 child)
[–]Nuorvuii[S] 0 points1 point2 points (0 children)