Re: [Tutor] Help with loops

2018-05-01 Thread Isaac Tetteh
Hi Shannon, Yes there is a way. First in my opinion I think queue.json is not really a JSON data structure but just a list of list. If you are able to read it then I that’s great. One way to solve this is doing something like below: queue = [ ["James Bruce", "Bananas"], ["Kathe

Re: [Tutor] updating stock list

2018-05-01 Thread Mats Wichmann
On 04/30/2018 04:15 PM, Shannon Evans via Tutor wrote: > Hi, i'm wanting to update the stock list at the end so that the fruit > that's given is taken subtracted from the original stock list. The code > i've written isn't updating it it's just staying the same. Any idea what i > can do to fix this?