Is it bad that I had absolutely no idea how to do ps1, problem 2? I understood and completed problem 1 fairly quickly but problem 2 really had me stumped (until I looked at the source code). I now understand how it works, but I would never have figured it out otherwise.
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga.
Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus.
Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
which course? 2008, 2011sc??
did you understand the lectures?
did you read all the readings?
did you try and play around with the examples given in the lectures and the readings?
have you been thru the Tutorial in the Python docs?
what gave you a problem? the code required to implement a solution? or figuring out a solution?
sometimes it helps to write ideas down on paper.
I did 2011sc (for no particular reason whatsoever).
I've just finished lecture 4 and recitation 2, and fully comprehend everything I've learned thus far, with a little help from other website tutorials.
I always have my editor and IDE open during the lectures and mimic what they do.
I suppose my issue with ps1-p2 was figuring out a solution.
I did all the math on paper and got the same numbers. My problem was transferring my idea on paper to code.
Perhaps I need more time reading tutorials from other sources to get different examples.
I guess I have an issue with taking the examples given in lecture, and applying them to real life scenarios/programs.
Not the answer you are looking for? Search for more explanations.
those two problems are about flow control - you probably just need to be patient as you learn more of the language, it will be able to see how to implement a solution. The course focuses more on teaching computer science topics than teaching Python. You need to become very familiar with the Python documentation - the Tutorial is a good place to start and the docs for all of the built-in functions - here are the online version (i like the version installed on my computer better)
all of the 'textbooks' on the references page are good: the 2008 course used "How To Think Like a Computer Scientist" - i liked it. I've also used Dive Into Python and like it.
I constantly post links to "Code Like a Pythonista: Idiomatic Python" in this forum - it's up on the tab next to this one as i speak.
Thank you so much for pointing me in the right direction! I've bookmarked a few sites and will continue to study.
I've also found a command line tutorial that helped with learning to use Python with my command prompt instead of the IDE included with Python.
Again, thank you bwCA!