For Loop Not Working
If you run the repl, make 2 or more food, then do serve food, it will only do one of them. why is that, and how do I solve it?
@IMayBeMe hmmm, let me explain it more carefully, go to check orders, then go to make food and make 2 or more foods that had a one or more next to it when you checked orders. then go to serve food and it should only show 1 correct order not 2, which is how many it should show. Also, I added
print('loop') to show how many times it loops, (in this case, it should be 2 times.)
@Brendan23 Hi, um, I'm not sure, but is loop a variable? I went into your code and as noted above, you said
print('loop'), because if loop is a variable, then it should be
print(loop) so it prints the variable loop instead of the string "loop".
@Brendan23 Ok, gotcha. I also have a question on your repl, whenever I type something, like "make food" or "Make food", it says invalid input. Is it because I have zero money? If so, I would recommend that you give everyone money at the beginning and list the price to do something, and maybe have a "help" function.