in reply to Pattern Mismatch

Please also see How can I visualize my complex data structure?, which contains some options for the more visually inclined. The best thing for you to do, IMHO, at this stage in learning, is to create very small test cases and include lots of print statements to make sure you know exactly what all your variables look like so you understand what's happening. Good luck!

HTH,

planetscape