Ask HN: Simple exercises for a python beginner?
I've been helping a complete beginner to learn the basics of python. He's got a basic understanding of loops, conditionals, and input and print statements, plus a few functions, and knows how to use a text editor to write code. He really wants some simple programming exercises he can do to help him consolidate his knowledge. I've given him a few exercises I made up, but we are looking for more. Is there a good resource for this ( not project Euler! ), or do people here have any ideas?
18 comments
[ 3.5 ms ] story [ 49.4 ms ] threadhttp://learnpythonthehardway.org/
It's 1/2 done, but the first half is a really good start for someone totally new to programming and the language.
Also, submit tickets if your friend runs into trouble spots so I can clear them up.
Just want to give kudos to you for the book. I agree with your approach of teaching the language - the portion on argv, args was clearer than the tutorials I have went through so far.
Keep up the good work!
Also, all of their examples use two spaces, not four (the python standard)
The C Programming Language, http://en.wikipedia.org/wiki/The_C_Programming_Language
The Elements of Programming Style, http://en.wikipedia.org/wiki/The_Elements_of_Programming_Sty...
Writing Efficient Programs, http://en.wikipedia.org/wiki/Jon_Bentley
Programming Pearls, http://netlib.bell-labs.com/cm/cs/pearls/
The UNIX Programming Environment, http://en.wikipedia.org/wiki/The_UNIX_Programming_Environmen...
And, er, Learning Python, http://en.wikipedia.org/wiki/Learning_Python
I think he is better of learning from more pythonic sources, and learning programming in general.
The guy was looking for exercises.
You can implement the exercises in whatever language you're learning. Python, for example.
http://www.pythonchallenge.com/
You can post your work, view others' work, leave comments, and ask questions. 29 people have done at least the first lesson so far. It's one of the most active classes on the site.