So Far: I re-structured my question bank and animal bank: my old version was inconsistent with use of dictionaries and lists, and whether attributes had multiple or boolean values, which made my code and logic MESSY. It’s been a while since I worked on this project, because quite frankly, I was stuck - turns out this project may have been a little complicated for my first project to learn python with. The first thing I did was try to work my way through the logic, especially where nested dictionaries + lists were involved, because that was my main source of confusion (yes, I did it manually on paper I found that easier). I then experimented a little with lists and dictionaries, until FINALLY rewriting my code so its a lot more consistent and easier to work with!! Next Steps: Yes, this does mean I’ll need to recode my subroutines, soooo… there’s definetely that! Recode my subroutines to work with the new, more consistent data structures. I’ll start with askQ, then processAnswer and animalAttribute, testing each one independently before connecting them together.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.