<p><strong>Original Question</strong></p>

<p>I am currently engaged in teaching my brother to program.  He is a total beginner, but very smart. (And he actually wants to learn).  I've noticed that some of our sessions have gotten bogged down in minor details, and I don't feel I've been very organized. (<em>But the answers to this post have helped a lot.</em>)</p>

<p>What can I do better to teach him effectively?  Is there a logical order that I can use to run through concept by concept?  Are there complexities I should avoid till later?</p>

<p>The language we are working with is <a href="http://www.python.org" rel="noreferrer">Python</a>, but advice in any language is welcome.</p>

<hr>

<p><strong>How to Help</strong></p>

<p>If you have good ones please add the following in your answer:</p>

<ul>
<li>Beginner Exercises and Project Ideas</li>
<li>Resources for teaching beginners</li>
<li>Screencasts / blog posts / free e-books</li>
<li>Print books that are good for beginners</li>
</ul>

<p>Please describe the resource <em>with a link to it</em> so I can take a look.  I want everyone to know that I have definitely been using some of these ideas.  Your submissions will be aggregated in this post.</p>

<hr>

<p><strong>Online Resources</strong> for teaching beginners:</p>

<ul>
<li><a href="http://ocw.mit.edu/OcwWeb/Electrical-Engineering-and-Computer-Science/6-189January--IAP--2008/CourseHome/" rel="noreferrer">A Gentle Introduction to Programming Using Python</a></li>
<li><a href="http://openbookproject.net/thinkcs/python/english2e/index.html" rel="noreferrer">How to Think Like a Computer Scientist</a></li>
<li><a href="http://www.alice.org/" rel="noreferrer">Alice: a 3d program for beginners</a></li>
<li><a href="http://scratch.mit.edu/" rel="noreferrer">Scratch (A system to develop programming skills)</a></li>
<li><a href="http://www.htdp.org/" rel="noreferrer">How To Design Programs</a></li>
<li><a href="http://mitpress.mit.edu/sicp/full-text/book/book.html" rel="noreferrer">Structure and Interpretation of Computer Programs</a></li>
<li><a href="http://pine.fm/LearnToProgram/" rel="noreferrer">Learn To Program</a></li>
<li><a href="http://samizdat.mines.edu/howto/HowToBeAProgrammer.html" rel="noreferrer">Robert Read's How To Be a Programmer</a></li>
<li><a href="http://creators.xna.com/" rel="noreferrer">Microsoft XNA</a></li>
<li><a href="http://vodpod.com/watch/914464-inspirational-oscon-keynote" rel="noreferrer">Spawning the Next Generation of Hackers</a></li>
<li><a href="http://deimos3.apple.com/WebObjects/Core.woa/Browse/unsw.edu.au.1504975442.01504975444" rel="noreferrer"><em>COMP1917 Higher Computing</em> lectures by Richard Buckland</a> (requires iTunes)</li>
<li><a href="http://diveintopython.net/" rel="noreferrer">Dive into Python</a></li>
<li><a href="http://en.wikibooks.org/wiki/Programming:Python" rel="noreferrer">Python Wikibook</a></li>
<li><a href="http://projecteuler.net/" rel="noreferrer">Project Euler</a> - sample problems (mostly mathematical)</li>
<li><a href="http://www.pygame.org/" rel="noreferrer">pygame</a> - an easy python library for creating games</li>
<li><a href="http://inventwithpython.com/IYOCGwP_book1.pdf" rel="noreferrer">Invent Your Own Computer Games With Python</a></li>
<li><a href="http://codebetter.com/blogs/karlseguin/archive/2008/06/24/foundations-of-programming-ebook.aspx" rel="noreferrer">Foundations of Programming</a> for a next step beyond basics.</li>
<li><a href="http://www.iam.unibe.ch/~scg/SBE/" rel="noreferrer">Squeak by Example</a> </li>
<li><a href="http://www.briggs.net.nz/log/writing/snake-wrangling-for-kids/" rel="noreferrer">Snake Wrangling For Kids</a> (It's not just for kids!)</li>
</ul>

<hr>

<p><strong>Recommended Print Books</strong> for teaching beginners</p>

<ul>
<li><a href="http://www.acceleratedcpp.com/" rel="noreferrer">Accelerated C++</a></li>
<li><a href="https://rads.stackoverflow.com/amzn/click/com/1598631128" rel="noreferrer" rel="nofollow noreferrer">Python Programming for the Absolute Beginner</a></li>
<li><a href="https://rads.stackoverflow.com/amzn/click/com/0735611319" rel="noreferrer" rel="nofollow noreferrer">Code by Charles Petzold</a></li>
<li><a href="https://rads.stackoverflow.com/amzn/click/com/1590282418" rel="noreferrer" rel="nofollow noreferrer">Python Programming: An Introduction to Computer Science 2nd Edition</a></li>
</ul>

[{'answer_id': 3092, 'author': 'jj33', 'author_id': 430, 'author_profile': 'https://Stackoverflow.com/users/430', 'pm_score': 2, 'selected': False, 'text': "<p>If he's interested, aren't the minor details the good parts?  Using python, you've already cut the GUI off of it so that confusion is gone.  Why not pick a project, a game or something, and implement it.  The classic hi-lo number guessing game can be simply implemented from the command line in 20-30 lines of code (depending on language of course)  and gives you variables, conditions, loops, and user input.</p>\n"}, {'answer_id': 3095, 'author': 'Brandon Wood', 'author_id': 423, 'author_profile': 'https://Stackoverflow.com/users/423', 'pm_score': 2, 'selected': False, 'text': '<p>First of all, start out like everyone else does: with a <a href="http://en.wikipedia.org/wiki/Hello_world" rel="nofollow noreferrer">Hello World</a> program.  It\'s simple, and it gives them a basic feel for the layout of a program.  Try and remember back to when you were first programming, and how difficult some of the concepts were - start simple.  </p>\n\n<p>After Hello World, move on to creating some basic variables, arithmetic, then onto boolean logic and if/else statements.  If you\'ve got one of your old programming textbooks, check out some of the early examples and have him run through those.  Just don\'t try to introduce too much all at once, or it will be overwhelming and confusing.</p>\n'}, {'answer_id': 3097, 'author': 'Mike Stone', 'author_id': 122, 'author_profile': 'https://Stackoverflow.com/users/122', 'pm_score': 0, 'selected': False, 'text': '<p>I would actually argue to pick a simpler language with fewer instructions.  I personally learned on BASIC at home, as <a href="http://www.codinghorror.com/blog/archives/001104.html" rel="nofollow noreferrer">did Jeff</a>.  This way, you don\'t have to delve into more complicated issues like object oriented programming, or even procedures if you don\'t want to.  Once he can handle simple control flow, then move on to something a little more complicated, but only simple features.</p>\n\n<p>Maybe start with very simple programs that just add 2 numbers, and then grow to something that might require a branch, then maybe reading input and responding to it, then some kind of loop, and start combining them all together.  Just start little and work your way up.  Don\'t do any big projects until he can grasp the fundamentals (otherwise it may very well be too daunting and he could give up midway).  Once he\'s mastered BASIC or whatever you choose, move on to something more complicated.</p>\n\n<p>Just my $0.02</p>\n'}, {'answer_id': 3099, 'author': 'Anton', 'author_id': 340, 'author_profile': 'https://Stackoverflow.com/users/340', 'pm_score': 2, 'selected': False, 'text': '<p>Something you should be very mindful of while teaching your brother to program is for him not to rely too heavily on you. Often when I find myself helping others they will begin to think of me as answer book to all of their questions and instead of experimenting to find an answer they simply ask me. Often the best teacher is experimentation and every time your brother has a question like "What will happen if I add 2 to a string?" you should tell him to try it out and see for himself. Also I have noticed that when I cannot get a concept through to someone, it helps to see some sample code where we can look at each segment individually and explain it piece by piece. As a side note people new to programming often have trouble with the idea of object oriented programming, they will say they understand it when you teach it to them but will not get a clear concept of it until actually implementing it.</p>\n'}, {'answer_id': 3105, 'author': 'Jason Pratt', 'author_id': 99, 'author_profile': 'https://Stackoverflow.com/users/99', 'pm_score': 5, 'selected': False, 'text': '<p>You could try using <a href="http://www.alice.org/" rel="nofollow noreferrer">Alice</a>.  It\'s a 3D program designed for use in introductory programming classes.</p>\n\n<p>The two biggest obstacles for new programmers are often:</p>\n\n<ul>\n<li>syntax errors</li>\n<li>motivation (writing something meaningful and fun rather than contrived)</li>\n</ul>\n\n<p>Alice uses a drag and drop interface for constructing programs, avoiding the possibility of syntax errors.  Alice lets you construct 3D worlds and have your code control (simple) 3D characters and animation, which is usually a lot more interesting than implementing linked lists.</p>\n\n<p>Experienced programmers may look down at Alice as a toy and scoff at dragging and dropping lines of code, but <a href="http://www.alice.org/index.php?page=publications/publications" rel="nofollow noreferrer">research</a> shows that this approach works.</p>\n\n<p>Disclaimer: I worked on Alice.</p>\n'}, {'answer_id': 3109, 'author': 'Mark Harrison', 'author_id': 116, 'author_profile': 'https://Stackoverflow.com/users/116', 'pm_score': 4, 'selected': False, 'text': '<p>A good python course is MIT\'s <a href="http://ocw.mit.edu/OcwWeb/Electrical-Engineering-and-Computer-Science/6-189January--IAP--2008/CourseHome/" rel="nofollow noreferrer">A Gentle Introduction to Programming Using Python</a>.  It\'s all free online, and you don\'t have to be an MIT uberstudent to understand it.</p>\n\n<blockquote>\n  <p>Edit [<a href="https://stackoverflow.com/users/92/justin-standard">Justin Standard</a>]</p>\n  \n  <p>This course uses this free online book: <a href="http://www.openbookproject.net/thinkcs/python/english2e/index.xhtml" rel="nofollow noreferrer">How To Think Like a Computer Scientist</a><br>\n  I\'m definitely finding it quite useful.</p>\n</blockquote>\n'}, {'answer_id': 3117, 'author': 'Eric Haskins', 'author_id': 100, 'author_profile': 'https://Stackoverflow.com/users/100', 'pm_score': 7, 'selected': False, 'text': '<p>I\'ve had to work with several beginner (never wrote a line of code) programmers, and I\'ll be doing an after school workshop with high school students this fall. This is the closest thing I\'ve got to documentation. It\'s still a work in progress, but I hope it helps.</p>\n\n<p>1) <b>FizzBuzz.</b> Start with command line programs. You can write some fun games, or tools, very quickly, and you learn all of the language features very quickly without having to learn the GUI tools first. These early apps should be simple enough that you won\'t need to use any real debugging tools to make them work.</p>\n\n<p>If nothing else things like FizzBuzz are good projects. Your first few apps should not have to deal with DBs, file system, configuration, ect. These are concepts which just confuse most people, and when you\'re just learning the syntax and basic framework features you really don\'t need more complexity.</p>\n\n<p>Some projects:</p>\n\n<ul>\n<li>Hello World!</li>\n<li>Take the year of my birth, and calculate my age (just (now - then) no month corrections). <i>(simple math, input, output)</i></li>\n<li>Ask for a direction(Up, down, left, right), then tell the user their fate (fall in a hole, find a cake, ect). <i>(Boolean logic)</i></li>\n<li>FizzBuzz, but count once every second. <i>(Loops, timers, and more logic)</i></li>\n<li>Depending on their age some really like an app which calls the users a random insult at some interval. <i>(Loops, arrays, timers, and random if you make the interval random)</i></li>\n</ul>\n\n<p>2) <b>Simple Project</b> Once they have a good grasp of language features, you can start a project(simple, fun games work good.). You should try to have the first project be able to be completed within 6-12 hours. Don\'t spend time to architect it early. Let them design it even if it sucks. If it falls apart, talk about what happened and why it failed, then pick another topic and start again.</p>\n\n<p>This is where you start introducing the debugging capabilities of your tools. Even if you can see the problem by reading the code you should teach them how to use the tools, and then show them how you could see it. That serves the dual purpose of teaching the debugging tools and teaching how to ID errors without tools.</p>\n\n<p>Once, or if, the project gets functional you can use it to introduce refactoring tools. Its good if you can then expand the project with some simple features which you never planned for. This usually means refactoring and significant debugging, since very few people write even half decent code their first time.</p>\n\n<p>Some projects:</p>\n\n<ul>\n<li>Hangman game</li>\n<li>Experimenting with robotics(<a href="http://www.vexlabs.com" rel="nofollow noreferrer">Vex</a> and <a href="http://mindstorms.lego.com" rel="nofollow noreferrer">Mindstorms</a> are options) </li>\n</ul>\n\n<p>3) <b>Real Project </b> Start a real project which may take some time. Use proper source control, and make a point to have a schedule. Run this project like a real project, if nothing else its good experience having to deal with the tools.</p>\n\n<p>Obviously you need to adjust this for each person. The most important thing I\'ve found is to make even the first simple apps apply to what the person is interested in. </p>\n\n<p>Some projects:</p>\n\n<ul>\n<li>Tetris</li>\n<li>Text file based blog engine</li>\n<li>More advanced robotics work</li>\n</ul>\n'}, {'answer_id': 3120, 'author': 'sparkes', 'author_id': 269, 'author_profile': 'https://Stackoverflow.com/users/269', 'pm_score': 2, 'selected': False, 'text': '<p>I used to teach programming and your brother has one main advantage over most of my students he wants to learn :)</p>\n\n<p>If you decide to go with C <a href="http://cymonsgames.retroremakes.com/" rel="nofollow noreferrer">a friend has a site</a> that has the sort of programs those of use from older generations remember as basic type-ins.  The more complex of them use ncurses which sort of negates their use as a teaching aid somewhat but some of them are tiny little things and you can learn loads without being taught to.</p>\n\n<p>Personally I think Python and Ruby would make great first languages.</p>\n\n<p>EDIT:\n<a href="http://cymonsgames.retroremakes.com/beginners-programming-homework/" rel="nofollow noreferrer">list of beginner programming assignments</a> appeared overnight might be just what you are looking for.</p>\n'}, {'answer_id': 3125, 'author': 'Jon Limjap', 'author_id': 372, 'author_profile': 'https://Stackoverflow.com/users/372', 'pm_score': 0, 'selected': False, 'text': '<p>I think the "wisdom of crowds" work here. How did most people learn how to program? Many claim that they did so by copying programs of others, usually games they wanted to play in BASIC.</p>\n\n<p>Maybe that route will work with him too?</p>\n'}, {'answer_id': 3135, 'author': 'Lea Cohen', 'author_id': 278, 'author_profile': 'https://Stackoverflow.com/users/278', 'pm_score': 1, 'selected': False, 'text': '<p>If you want to teach the basics of programming, without being language specific, there is an application called <a href="http://scratch.mit.edu/" rel="nofollow noreferrer">Scratch</a> that was created in MIT. It\'s designed to help people  develop programming skills. As users create Scratch projects, they learn to create conditions, loops, etc. There is a also a community of scratch projects, form which projects can be downloaded - that way you can explore other people\'s programs and see how they were built.</p>\n'}, {'answer_id': 3273, 'author': 'CAD bloke', 'author_id': 492, 'author_profile': 'https://Stackoverflow.com/users/492', 'pm_score': 2, 'selected': False, 'text': "<p>It really depends on your brother's learning style. Many people learn faster by getting their hands dirty &amp; just getting into it, crystallising the concepts and the big picture as they progress and build their knowledge.</p>\n\n<p>Me, I prefer to start with the big picture and drill down into the nitty-gritty. The first thing I wanted to know was how it all fits together then all that Object-oriented gobbledygook, then about classes &amp; instances and so-on. I like to know the underlying concepts and a bit of theory before I learn the syntax. I had a bit of an advantage because I wrote some games in BASIC 20 years ago but nothing much since.</p>\n\n<p>Perhaps it is useful to shadow a production process by starting with an overall mission statement, then a plan and/or flowchart, then elaborate into some pseudo code (leaning towards the syntax you will ultimately use) before actually writing the code.</p>\n\n<p>The golden rule here is to suss out your student's leaning style.</p>\n"}, {'answer_id': 3651, 'author': 'CodingWithoutComments', 'author_id': 25, 'author_profile': 'https://Stackoverflow.com/users/25', 'pm_score': 3, 'selected': False, 'text': '<p>http://tryruby.hobix.com/">Try Ruby (In Your Browser)</p>\n'}, {'answer_id': 3742, 'author': 'Kevin', 'author_id': 40, 'author_profile': 'https://Stackoverflow.com/users/40', 'pm_score': 0, 'selected': False, 'text': '<p>I agree with Leac.  I actually play with <a href="http://scratch.mit.edu/" rel="nofollow noreferrer">Scratch</a> sometimes if I\'m bored.  It\'s a pretty fun visual way of looking at code.</p>\n\n<p>How it works is, they give you a bunch of "blocks" (these look like legos) which you can stack.  And by stacking these blocks, and interacting with the canvas (where you put your sprites, graphics), you can create games, movies, slideshows... it\'s really interesting.</p>\n\n<p>When it\'s complete you can upload it right to the Scratch websites, which is a youtube-ish portal for Scratch applications.  Not only that, but you can download any submission on the website, and learn from or extend other Scratch applications.</p>\n'}, {'answer_id': 4425, 'author': 'Jarin Udom', 'author_id': 574, 'author_profile': 'https://Stackoverflow.com/users/574', 'pm_score': 3, 'selected': False, 'text': '<p>This is a fantastic book which my little brothers used to learn:</p>\n\n<p><a href="http://pine.fm/LearnToProgram/" rel="nofollow noreferrer">http://pine.fm/LearnToProgram/</a></p>\n\n<p>Of course, the most important thing is to start on a real, useful program of some kind IMMEDIATELY after finishing the book.</p>\n'}, {'answer_id': 4426, 'author': 'Ed.', 'author_id': 522, 'author_profile': 'https://Stackoverflow.com/users/522', 'pm_score': 0, 'selected': False, 'text': '<p>I recommend starting them off with C/C++.  I find that it is a good foundation for just about every other language.  Also, the different versions of BASIC can be pretty dodgy, at best, and have no real correlation to actual programming.</p>\n'}, {'answer_id': 4505, 'author': 'Polsonby', 'author_id': 137, 'author_profile': 'https://Stackoverflow.com/users/137', 'pm_score': 0, 'selected': False, 'text': "<p>I think learning to program because you want to learn to program will never be as good as learning to program because you want to DO something. If you can find something that your brother is interested in making work because he wants to make it work, you can just leave him with Google and he'll do it. And he'll have you around to check he's going along the right path.</p>\n\n<p>I think one of the biggest problems with teaching programming in the abstract is that it's not got a real-world context that the learner can get emotionally invested in. Programming is hard, and there has to be some real payoff to make it worth the effort of doing it. In my case, I'd done computer science at uni, learned Pascal and COBOL there, and learned BASIC at home before that, but I never really got anywhere with it until I became a self-employed web designer back in the 90s and my clients needed functionality on their web sites, and were willing to pay about 10x more for functionality than for design. Putting food on the table is a hell of a motivator!</p>\n\n<p>So I learned Perl, then ASP/VBScript, then JavaScript, then Flash/ActionScript then PHP - all in order to make the stuff I wanted to happen.</p>\n"}, {'answer_id': 4559, 'author': 'grom', 'author_id': 486, 'author_profile': 'https://Stackoverflow.com/users/486', 'pm_score': 3, 'selected': False, 'text': '<p><a href="http://www.htdp.org/" rel="nofollow noreferrer">How to Design Programs</a></p>\n\n<p><a href="http://mitpress.mit.edu/sicp/full-text/book/book.html" rel="nofollow noreferrer">Structure and Interpretation of Computer Programs</a> . Videos lectures at <a href="http://www.swiss.ai.mit.edu/classes/6.001/abelson-sussman-lectures/" rel="nofollow noreferrer">http://www.swiss.ai.mit.edu/classes/6.001/abelson-sussman-lectures/</a></p>\n'}, {'answer_id': 5400, 'author': 'DanV', 'author_id': 622, 'author_profile': 'https://Stackoverflow.com/users/622', 'pm_score': 1, 'selected': False, 'text': "<p>I think that once he has the basics (variables, loops, etc) down you should try to help him find something specific that he is interested in and help him learn the necessities to make it happen.  I know that I am much more inclined and motivated to do something if it's of interest to me.  Also, make sure to let him struggle though some of the tougher problems, nothing is more satisfying than the moment you figure it out on your own.</p>\n"}, {'answer_id': 6517, 'author': 'Esteban Araya', 'author_id': 781, 'author_profile': 'https://Stackoverflow.com/users/781', 'pm_score': 2, 'selected': False, 'text': '<p>I\'d just let him write tons of code. Let him drive in everything you guys do, and just be available to answer questions.</p>\n\n<p>Believe it or not, after a few months of writings tons of crappy code, he\'ll start to get the idea and start writing better programs. At that point, you can get bogged down in details (memory, etc), and also talk about general design principles.</p>\n\n<p>I\'ve heard that what separates the great artists from the mediocre ones, is that every time they practice, they improve on something, no matter how small. Let your brother practice, and he\'ll improve every time he sits down at the keyboard.</p>\n\n<blockquote>\n  <p>Edit: [Justin Standard]</p>\n  \n  <p>Esteban, this reminds me of a recent <a href="http://www.codinghorror.com/blog/archives/001160.html" rel="nofollow noreferrer">coding horror post</a>, and I <em>do</em> think you are right.  But I think its still worthwhile to find methods to <em>guide</em> his practice.  No question, I want him writing as much code as he knows how to do.  Thats one reason I\'m asking for sample projects.</p>\n</blockquote>\n'}, {'answer_id': 6548, 'author': 'bruceatk', 'author_id': 791, 'author_profile': 'https://Stackoverflow.com/users/791', 'pm_score': 1, 'selected': False, 'text': '<p>I was taught by learning how to solve problems in a language agnostic way using flowcharts and <a href="http://en.wikipedia.org/wiki/Program_Design_Language" rel="nofollow noreferrer">PDL</a> (Program Design Language).  After a couple weeks of that, I learned to convert the PDL I had written to a language.  I am glad I learned that way because I have spent the majority of my years programming, solving problems without being tied to a language.  What language I use has always been an implementation detail and not part of the design. </p>\n\n<p>Having to solve the problem by breaking it down into it\'s basic steps is a key skill.  I think it is one of the things that separates those that can program from those that can\'t.</p>\n\n<p>As far as how you tackle the order of concepts of a language I believe the easiest way is to decide that is to have a project in mind and tackle the concepts as they are needed.  This lets you apply them as they are needed on something that you are interested in doing.  When learning a language it is good to have several simple projects in mind and a few with progressive complexity.  Deciding on those will help you map out the concepts that are needed and their order.</p>\n'}, {'answer_id': 6669, 'author': 'Rob Cooper', 'author_id': 832, 'author_profile': 'https://Stackoverflow.com/users/832', 'pm_score': 0, 'selected': False, 'text': '<p>First off, I think there has already been some great answers, so I will try not to dupe too much.</p>\n\n<ul>\n<li>Get them to write lots of code, keep them asking questions to keep the brain juices flowing.</li>\n<li>I would say dont get bogged down with the <em>really</em> detailed information until they either run in to the implications of them, or they ask.</li>\n</ul>\n\n<p>I think one of the biggest points I would ensure is that they understand the core concepts of a framework. I know you are working in Python (which I have no clue about) but for example, with ASP.NET getting people to understand the page/code behind model can be a real challenge, but its <strong>critical</strong> that they understand it. As an example, I recently had a question on a forum about "<em>where do I put my data-access code, in the \'cs\' file or the \'aspx\' file</em>".</p>\n\n<p>So I would say, for the most part, let them guide the way, just be there to support them where needed, and prompt more questions to maintain interest. Just ensure they have the fundamentals down, and dont let them run before they can walk.</p>\n\n<p>Good Luck!</p>\n'}, {'answer_id': 6696, 'author': 'martinsb', 'author_id': 837, 'author_profile': 'https://Stackoverflow.com/users/837', 'pm_score': 1, 'selected': False, 'text': "<p>I would recommend also watching some screencasts - they are generally created in context of a specific technology not a language, though if there's Python code displayed, that'll do :). The point is - they're created by some good programmers and watching how good programmers program is a good thing. You and your brother could do some peer programming as well, that might be an even better idea. Just don't forget to explain WHY you do something this way and not that way.\nI think the best way to learn programming is from good examples and try not to even see the bad ones.</p>\n"}, {'answer_id': 6836, 'author': 'David', 'author_id': 381, 'author_profile': 'https://Stackoverflow.com/users/381', 'pm_score': 1, 'selected': False, 'text': '<p>Robert Read wrote a useful guide, <a href="http://samizdat.mines.edu/howto/HowToBeAProgrammer.html" rel="nofollow noreferrer">How to be a Programmer</a>, which covers a wide area of programming issues that a beginner would find helpful.</p>\n'}, {'answer_id': 7516, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 1, 'selected': False, 'text': '<p>There have already been a bunch of great answers, but for an absolute beginner, I would wholeheartedly recommend <a href="http://hacketyhack.net/" rel="nofollow noreferrer">Hackety Hack</a>. It was created by the unreasonably prolific <a href="http://whytheluckystiff.net/" rel="nofollow noreferrer">why_the_lucky_stiff</a> specifically to provide a BASIC/LOGO/Pascal-like environment for new programmers to experiment in. It\'s essentially a slick Ruby IDE with some great libraries (flash video, IM, web server) and interactive lessons. It makes a good pitch for programming, as it chose lessons that do fun, useful things. "Hello, world" may not impress right off the bat, but  creating a custom IM client in 20 minutes can inspire someone to keep learning. Have fun!</p>\n'}, {'answer_id': 7713, 'author': 'Mark Ingram', 'author_id': 986, 'author_profile': 'https://Stackoverflow.com/users/986', 'pm_score': 1, 'selected': False, 'text': '<p>Copy some simple code line by line and get them to read and interpret it as they go along. They will soon work it out. I started programming on an Acorn Electron with snippets of code from Acorn magazines. I had no idea about programming when I was 6, I used to copy the text, but gradually I learnt what the different words meant.</p>\n'}, {'answer_id': 7716, 'author': 'Tanerax', 'author_id': 567, 'author_profile': 'https://Stackoverflow.com/users/567', 'pm_score': 0, 'selected': False, 'text': '<p>I would recommend in first teaching the very basics that are used in almost every language, but doing so without a language. Outline all the basic concepts If-Else If-Else, Loops, Classes, Variable Types, Structures, etc. Everything that is the foundation of most languages. Then move onto really understanding Boolean, comparisons and complex AND OR statements, to get the feeling on what the outcomes are for more complex statements. </p>\n\n<p>By doing it this way he will understand the concepts of programming and have a much easier time stepping into languages, from there its just learning the intricate details of the languages,  its functions, and syntax.</p>\n'}, {'answer_id': 7748, 'author': 'BlaM', 'author_id': 999, 'author_profile': 'https://Stackoverflow.com/users/999', 'pm_score': 0, 'selected': False, 'text': '<p>My favourite "start learning to code" project is the Game <strong>Snakes</strong> or <strong>Tron</strong> because it allows you to start slow (variables to store the current "worm position", arrays to store the worm positions if the worm is longer than one "piece", loops to make the worm move, if/switch to allow the user to change the worm\'s direction, ...). It also allows to include more and more stuff into the project in the long run, e.g. object oriented programming (one worm is one object with the chance to have two worms at the same time) with inheritance (go from "Snakes" to "Tron" or the other way around, where the worm slightly changes behavior).</p>\n\n<p>I\'d suggest that you use <a href="http://creators.xna.com/" rel="nofollow noreferrer">Microsoft\'s XNA</a> to start. In my experience starting to program is much more fun if you can see something on your screen, and XNA makes it really easy to get something moving on the screen. It\'s quite easy to do little changes and get another look, e.g. by changing colors, so he can see that his actions have an effect -> Impression of success. Success is fun, which is a great motivation to keep on learning.</p>\n'}, {'answer_id': 9504, 'author': 'Andrew Grant', 'author_id': 1043, 'author_profile': 'https://Stackoverflow.com/users/1043', 'pm_score': 1, 'selected': False, 'text': '<p>This may sound dumb, but why are YOU trying to teach your brother to program?</p>\n\n<p>Often the best learning environment consists of an goal that can be achieved by a keen beginner (a sample program), an ample supply of resources (google/tutorials/books), and a knowledgeable source of advice that can provide guidance when needed.</p>\n\n<p>You can definitely help with suggestions for the first two, but the last is your primary role.</p>\n'}, {'answer_id': 9604, 'author': 'Nexus', 'author_id': 1167, 'author_profile': 'https://Stackoverflow.com/users/1167', 'pm_score': 1, 'selected': False, 'text': '<p>I\'d suggest taking an approach similiar to that of the book, <a href="http://www.acceleratedcpp.com/" rel="nofollow noreferrer">Accelerated C++</a> in which they cover parts of C++ that are generally useful for making simple programs. For anyone new to programming I think having something to show for a little amount of effort is a good way to keep them interested. Once you have covered the fundamentals of Python then you should sit back and let him experiement with the language.</p>\n\n<p>In one of my University subjects for this semester they have taken an approach called Problem Based Learning(PBL) in which they use lectures to stimulate students about different approaches to problems. Since your brother is keen you should take a similiar approach. Set him small projects to work on and let him figure it out for himself. Then once he is finished you can go through his approach and compare and contrast with different methods.</p>\n\n<p>If you can give him just the right amount of help to steer him in the right direction then he should be fine. Providng him with some good websites and books would also be a good idea.</p>\n\n<p>I\'d also recommend sticking away from IDE\'s at the starting stages. Using the command line and a text editor will give him a greater understanding of the processes involved in compiling/assembling code.</p>\n\n<p>I hope I\'ve been of some help. :)</p>\n'}, {'answer_id': 10558, 'author': 'qwertyuu', 'author_id': 1261, 'author_profile': 'https://Stackoverflow.com/users/1261', 'pm_score': 0, 'selected': False, 'text': '<p>This thread is very useful to me as a beginner (>100 lines of code) programmer.</p>\n\n<p>Based on what I have been through, once I finished with the "Hello World" and move to variables and "if/else" statement, I got zapped with too much syntax; not knowing what to do with them.</p>\n\n<p>So with an interesting simple project, I might get my interest up again. There are quite alot of project suggestions here. </p>\n\n<p>Can I ask a questions here? </p>\n\n<p>Is it better to learn a scripting language like <a href="http://www.autohotkey.com/" rel="nofollow noreferrer">Autohotkey</a> first?</p>\n\n<blockquote>\n  <p>Edit: [Justin Standard]</p>\n  \n  <p>I think learning something macro-based like Autohotkey will only help minimally.  Try learning a "real" programming language first.  The easiest to get started with (according to most people) are <a href="http://www.python.org" rel="nofollow noreferrer">python</a> and <a href="http://www.ruby-lang.org/en/" rel="nofollow noreferrer">ruby</a>.  I favor python, but both are pretty simple.\n  There is also a <a href="https://stackoverflow.com/questions/4769/easiest-language-to-start-with#4856">full stackoverflow post</a> that answers the question of which language to start with.</p>\n</blockquote>\n'}, {'answer_id': 11277, 'author': 'Brad Gilbert', 'author_id': 1337, 'author_profile': 'https://Stackoverflow.com/users/1337', 'pm_score': 0, 'selected': False, 'text': '<p>At first I was interested in how different programs worked, so I started by looking at the source code. Then when I began to understand how the program worked, I would change certain parameters to see what would happen. So basically I learned how to read before I learned how to write. Which coincidently is how most people learn English.</p>\n\n<p>So if I was trying to teach someone how to program I would give them a small program to try to read and understand how it works, and have them just just play around with the source code.</p>\n\n<p>Only then would I give them "assignments" to try to accomplish.</p>\n\n<p>Now if they had a particular reason for wanting to learn how to program, it would certainly be a good idea to start with something along the lines of what they want to accomplish. For example if they wanted to be proficient in an application like <a href="http://www.blender.org/" rel="nofollow noreferrer">blender</a>, it would definably be a good idea to start with <a href="http://www.alice.org/" rel="nofollow noreferrer">Alice</a>.</p>\n\n<p>I would absolutely recommend sticking with a language that has garbage collection, like <a href="http://www.digitalmars.com/d/" rel="nofollow noreferrer">D</a>, <a href="http://www.perl.org/" rel="nofollow noreferrer">Perl</a>, or some interpreted language like javascript. It might be a good idea to stay away from Perl until <a href="http://www.perlfoundation.org/perl6" rel="nofollow noreferrer">Perl 6</a> is closer to completion, because it fixes some of the difficulties of reading and understanding Perl.</p>\n'}, {'answer_id': 12928, 'author': 'Wing', 'author_id': 958, 'author_profile': 'https://Stackoverflow.com/users/958', 'pm_score': 1, 'selected': False, 'text': '<p>Plenty of things tripped me up in the beginning, but none more than simple mechanics.  Concepts, I took to immediately.  But miss a closing brace?  Easy to do, and often hard to debug, in a non-trivial program.</p>\n\n<p>So, my humble advice is: don\'t understimate the basics (like good typing). It sounds remedial, and even silly, but it saved me so much grief early in my learning process when I stumbled upon the simple technique of typing the complete "skeleton" of a code structure and then just filling it in.</p>\n\n<p>For an "if" statement in Python, start with:</p>\n\n<pre><code>if  :\n</code></pre>\n\n<p>In C/C++/C#/Java:</p>\n\n<pre><code>if () \n{\n\n}\n</code></pre>\n\n<p>In Pascal/Delphi:</p>\n\n<pre><code>If () Then\nBegin\n\nEnd\n</code></pre>\n\n<p>Then, type between the opening and closing tokens.  Once this becomes a solid habit, so you do it without thinking, more of the brain is freed up to do the fun stuff.  Not a very flashy bit of advice to post, I admit, but one that I have personally seen do a lot of good!</p>\n\n<blockquote>\n  <p>Edit: [<a href="https://stackoverflow.com/users/92/justin-standard">Justin Standard</a>]</p>\n  \n  <p>Thanks for your contribution, Wing.  Related to what you said, one of the things I\'ve tried to help my brother remember the syntax for python scoping, is that every time there\'s a colon, he needs to indent the next line, and any time he thinks he should indent, there better be a colon ending the previous line.</p>\n</blockquote>\n'}, {'answer_id': 13185, 'author': 'samiq', 'author_id': 1549, 'author_profile': 'https://Stackoverflow.com/users/1549', 'pm_score': 0, 'selected': False, 'text': "<p>My personal experience started back in elementary using Logo Writer (which in a way has evolved into Scratch), granted I was a little kid and computers where not as awesome as they are nowadays, but for the time being it took me places I hadn't been before... I think that's how I got hooked in the business... I could say that it was these first impressions based on such simplicity and coolness that made the goods that stick into my head for life. That's how basics in teaching programming should be taught... a simple process that yearns magic.</p>\n\n<p>Back to my first CS 101, I started with notions of what an algorithm was by building a Tequila Sunrise (a step by step process that could be repeated at any time with the right ingredients, that will result in the same output), from there we move on to basic math functions using Scheme (like EHaskins was saying... start small and then build up), and from there to notions of loops, Boolean logic, structures and then building into concepts of objects and some simulation executions...</p>\n\n<p>One of the good things about this approach is that language was not a goal but just a tool in the process of learning the concepts and basics of programming (just like operators, functions and else are in mathematics).</p>\n\n<p>IMHO learning the basics of programming and creating a foundation is probably the best thing you could teach  your brother, once the goal is covered then u can move on into a more general use language like python and teach them higher concepts like architecture and design patterns (make them natural in the process so he will get use to good practices from early stages and will see them as part of the process)... we are far from reinventing the warm water, but we always have to start by creating fire.</p>\n\n<p>From there on the sky is the limit!</p>\n"}, {'answer_id': 14793, 'author': 'Peter Stuifzand', 'author_id': 1633, 'author_profile': 'https://Stackoverflow.com/users/1633', 'pm_score': 1, 'selected': False, 'text': '<p>How about this: <a href="http://vodpod.com/watch/914464-inspirational-oscon-keynote" rel="nofollow noreferrer">Spawning the next generation of hackers</a> by Nat Torkington.</p>\n'}, {'answer_id': 15898, 'author': 'Imran', 'author_id': 1897, 'author_profile': 'https://Stackoverflow.com/users/1897', 'pm_score': 0, 'selected': False, 'text': '<p>In my biased opinion, C is the best point to start. The language is small, it\'s high level features are ubiquitous and the low level features let you learn the machine.</p>\n\n<p>I found the <a href="https://rads.stackoverflow.com/amzn/click/com/0672326973" rel="nofollow noreferrer" rel="nofollow noreferrer">C Primer Plus, 5th Edition</a> very helpful as a beginning programmer with almost no programming experience. It assumes no prior programming experience, fun to read and covers C in depth (including the latest C99 standard).</p>\n'}, {'answer_id': 16327, 'author': 'kemiller2002', 'author_id': 1942, 'author_profile': 'https://Stackoverflow.com/users/1942', 'pm_score': 1, 'selected': False, 'text': "<p>There is a book called <em>Code</em>.  I can't remember who wrote it, but it goes through the basics of a lot of stuff that we (programmers) know and take for granted that people we talk to know also.  Everything from how do you count binary to how processors work.  It doesn't have anything dealing with programming languages in it (well from what I remember), but it is a pretty good primer.  I will admit that I am also of the school that believes you have to know how the computer works to be able to effectively program things for it.  </p>\n"}, {'answer_id': 18856, 'author': 'Magus', 'author_id': 2188, 'author_profile': 'https://Stackoverflow.com/users/2188', 'pm_score': 5, 'selected': False, 'text': '<p>I recommend Logo (aka the turtle) to get the basic concepts down. It provides a good sandbox with immediate graphical feedback, and you can demostrate loops, variables, functions, conditionals, etc. <a href="http://mckoss.com/logo/" rel="nofollow noreferrer" title="Learning Logo">This page</a> provides an excellent tutorial. </p>\n\n<p>After Logo, move to Python or Ruby. I recommend Python, as it\'s based on ABC, which was invented for the purpose of teaching programming. </p>\n\n<p>When teaching programming, I must second EHaskins\'s suggestion of simple projects and then complex projects. The best way to learn is to start with a definite outcome and a measurable milestone. It keeps the lessons focused, allows the student to build skills and then build on those skills, and gives the student something to show off to friends. Don\'t underestimate the power of having something to show for one\'s work.</p>\n\n<p>Theoretically, you can stick with Python, as Python can do almost anything. It\'s a good vehicle to teach object-oriented programming and (most) algorithms. You can run Python in interactive mode like a command line to get a feel for how it works, or run whole scripts at once. You can run your scripts interpreted on the fly, or compile them into binaries. There are thousands of modules to extend the functionality. You can make a graphical calculator like the one bundled with Windows, or you can make an IRC client, or anything else. </p>\n\n<p><a href="http://xkcd.com/353/" rel="nofollow noreferrer" title="Python">XKCD</a> describes Python\'s power a little better:\n<img src="https://i.stack.imgur.com/OtSPD.png" alt="&quot;You&#39;re flying! How?&quot; &quot;Python!&quot;" title="Python"></p>\n\n<p>You can move to C# or Java after that, though they don\'t offer much that Python doesn\'t already have. The benefit of these is that they use C-style syntax, which many (dare I say most?) languages use. You don\'t need to worry about memory management yet, but you can get used to having a bit more freedom and less handholding from the language interpreter. Python enforces whitespace and indenting, which is nice most of the time but not always. C# and Java let you manage your own whitespace while remaining strongly-typed. </p>\n\n<p>From there, the standard is C or C++. The freedom in these languages is almost existential. You are now in charge of your own memory management. There is no garbage collection to help you. This is where you teach the really advanced algorithms (like mergesort and quicksort). This is where you learn why "segmentation fault" is a curse word. This is where you download the source code of the Linux kernel and gaze into the Abyss. Start by writing a circular buffer and a stack for string manipulation. Then work your way up.</p>\n'}, {'answer_id': 18938, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 2, 'selected': False, 'text': '<p>If your brother has access to iTunes, he can download video lectures of an introductory computer science course given by Richard Buckland at the University of New South Wales. He\'s an engaging instructor and covers fundamentals of computing and the C language. If nothing else, tell your brother to play the vids in the background and some concepts might sink in through osmosis. :)</p>\n\n<p><strong>COMP1917 Higher Computing - 2008 Session 1</strong>\n<a href="http://deimos3.apple.com/WebObjects/Core.woa/Browse/unsw.edu.au.1504975442.01504975444" rel="nofollow noreferrer">http://deimos3.apple.com/WebObjects/Core.woa/Browse/unsw.edu.au.1504975442.01504975444</a></p>\n\n<p>If the link doesn\'t work, here\'s a path:</p>\n\n<p>Home -> iTunes U --> Engineering --> COMP1917 Higher Computing - 2008 Session 1</p>\n'}, {'answer_id': 22042, 'author': 'pkchukiss', 'author_id': 2504504, 'author_profile': 'https://Stackoverflow.com/users/2504504', 'pm_score': 0, 'selected': False, 'text': '<p>For me, exploring and experimenting within the IDE itself helped me to learn Java and Visual Basic, but I learnt the basics of programming the hard way: Perl 5. There wasn\'t a free IDE back then, so it meant typing codes into Notepad, saving it, and then run the perl interpreter.</p>\n\n<p>I\'d say that IDEs make learning the basics of programming easier. Try playing around with control structures and variables first. Say in Java:</p>\n\n<pre><code>int a = 5;\n\nfor (int i = 0; i &lt; a; i++) {\n     System.out.println("i is now " + i);\n}\n</code></pre>\n\n<p>Basically, simply learning the control structures and variables would allow a beginner to start coding fun stuff already.</p>\n'}, {'answer_id': 22045, 'author': 'DrPizza', 'author_id': 2131, 'author_profile': 'https://Stackoverflow.com/users/2131', 'pm_score': 4, 'selected': False, 'text': '<p>The key thing is that the person in question needs to have some problem that they want solving. If you don\'t have a program that you want to write (and something sensible and well-defined, not "I want to write the next Quake!") then you can\'t learn to program, because you have nothing to motivate you.  I mean, you could read a book and have a rough understanding of a language\'s syntax and semantics, but until you have <em>a program that you want written</em> you\'ll never grasp the nettle.</p>\n\n<p>If that impetus exists then everything else is just minor details.</p>\n'}, {'answer_id': 22442, 'author': 'Acuminate', 'author_id': 2482, 'author_profile': 'https://Stackoverflow.com/users/2482', 'pm_score': 1, 'selected': False, 'text': '<p>Python is easy for new developers to learn. You don\'t get tangled up in the specifics of memory management and type definition. <a href="http://diveintopython.net/" rel="nofollow noreferrer" title="Dive Into Python">Dive Into Python</a> is a good beginners guide to python programming. When my sister wanted to learn programing I pointed her to the "Head Start" line of books which she found very easy to read and understand. I find it\'s hard to just start teaching someone because you don\'t have a lexicon to use with them. First have him read a few books or tutorials and ask you for questions. From there you can assign projects and grade them. I find it hard to teach programming because I learned it over nearly 15 years of tinkering around.</p>\n'}, {'answer_id': 23395, 'author': 'Jared Updike', 'author_id': 2543, 'author_profile': 'https://Stackoverflow.com/users/2543', 'pm_score': 1, 'selected': False, 'text': '<p><a href="http://projecteuler.net/" rel="nofollow noreferrer">Project Euler</a> has a number of interesting mathematics problems that could provide great material for a beginning programmer to cut her teeth on. The problems begin easy and increase in difficulty and the web is <a href="http://www.google.com/search?hl=en&amp;lr=&amp;safe=active&amp;q=project+euler+solutions&amp;btnG=Search" rel="nofollow noreferrer">full of sample solutions in various programming languages</a>.</p>\n'}, {'answer_id': 24447, 'author': 'Jonathan Webb', 'author_id': 1518, 'author_profile': 'https://Stackoverflow.com/users/1518', 'pm_score': 1, 'selected': False, 'text': '<p>I\'d recommend Charles Petzold\'s book <a href="http://books.google.com/books?id=l4gpAAAACAAJ&amp;dq=petzold+code&amp;ei=2U-wSL_hNoLmygSxpcmoDQ" rel="nofollow noreferrer">Code - The Hidden Langauge of Computer Hardware and Software</a> as an excellent general introduction to how computers work.</p>\n\n<p>There\'s a <em>lot</em> of information in the book (382 pages) and it may take an absolute beginner some time to read but it\'s well worth it. Petzold manages to explain many of the core concepts of computers and programming from simple codes, relays, memory, CPUs to operating systems &amp; GUIs in a very clear and enjoyable way. It will provide any reader with a good sense of what\'s actually happening behind the scenes when they write code.</p>\n\n<p>I certainly wish it was around when I was first learning to program!</p>\n'}, {'answer_id': 27362, 'author': 'Jiaaro', 'author_id': 2908, 'author_profile': 'https://Stackoverflow.com/users/2908', 'pm_score': 2, 'selected': False, 'text': '<p>there\'s a <a href="http://en.wikibooks.org/wiki/Programming:Python" rel="nofollow noreferrer">wikibook that is pretty good for learning python</a>.</p>\n\n<p>I don\'t know how the wikibooks are for other languages, but I personally learned python from the wikibook as it was in Feb 2007</p>\n\n<p>ps - if you\'re unfamiliar with <a href="http://en.wikibooks.org/wiki/Main_Page" rel="nofollow noreferrer">wikibooks</a>, it\'s basically the wikipedia version of book authoring. it\'s sort of hard to describe, but if you check out a few of the books on there you\'ll see how it works</p>\n'}, {'answer_id': 28876, 'author': 'dwestbrook', 'author_id': 3119, 'author_profile': 'https://Stackoverflow.com/users/3119', 'pm_score': 1, 'selected': False, 'text': '<p>I don\'t know for sure what will be the best for your brother, but I know I started with python. I\'ve been playing various games from a very early age and wanted to make my own, so my uncle introduced me to python with the <a href="http://www.pygame.org/" rel="nofollow noreferrer" title="pygame website">pygame</a> library. It has many tutorials and makes it all easy (WAY easier than openGL in my opinion).\nIt <em>is</em> limited to 2d, but you should be starting out simple anyway.</p>\n\n<p>My uncle recommended python because he was interested in it at the time, but I recommend it, now fairly knowledgeable, because it\'s easy to learn, intuitive (or as intuitive as a programming language can get), and simple (but certainly not simplistic).</p>\n\n<p>I personally found basic programming simply to learn programming obscenely boring at the time, but picked up considerable enthusiasm as I went. I really wanted to be learning in order to build something, not just to learn it.</p>\n'}, {'answer_id': 30439, 'author': 'David Basarab', 'author_id': 2469, 'author_profile': 'https://Stackoverflow.com/users/2469', 'pm_score': 0, 'selected': False, 'text': "<p>The best way to learn anything is to start with the basic.  You can find any good text book to explain what programming is, memory, algorithms.  </p>\n\n<p>The next step select the language which it just depends on what the teacher knows or why the student wants to learn.  </p>\n\n<p>Then it is just code, code, code.  Code every example right from the book.  Then change it slightly to do another action.  Learning to program is an active process not a passive one.  You can't just read C++ How to Program by Dietal and then expect to code C++ without having actively done it while reading.</p>\n\n<p>Even if you are an experienced coder it helps to write the code in the book to learn something new.</p>\n"}, {'answer_id': 33684, 'author': 'joel.neely', 'author_id': 3525, 'author_profile': 'https://Stackoverflow.com/users/3525', 'pm_score': 1, 'selected': False, 'text': '<p>Begin by asking him this question: "<em>What kinds of things do you want to do with your computer?</em>"</p>\n\n<p>Then choose a set of activities that fit his answer, and choose a language that allows those things to be done. All the better if it\'s a simple (or simplifiable) scripting environment (e.g. Applescript, Ruby, any shell (Ksh, Bash, or even .bat files).</p>\n\n<p>The reasons are:</p>\n\n<ol>\n<li>If he\'s interested in the results, he\'ll probably be more motivated than if you\'re having him count Fibonacci\'s rabbits.</li>\n<li>If he\'s getting results he likes, he\'ll probably think up variations on the activities you create.</li>\n<li>If you\'re teaching him, he\'s not pursuing a serious career (yet); there\'s always time to switch to "industrial strength" languages later.</li>\n</ol>\n'}, {'answer_id': 37928, 'author': 'Martin Salias', 'author_id': 4020, 'author_profile': 'https://Stackoverflow.com/users/4020', 'pm_score': 1, 'selected': False, 'text': '<p>A good resource to teach young people is the free eBook "Invent your own games with Python":</p>\n\n<p><a href="http://pythonbook.coffeeghost.net/book1/IYOCGwP_book1.pdf" rel="nofollow noreferrer">http://pythonbook.coffeeghost.net/book1/IYOCGwP_book1.pdf</a></p>\n'}, {'answer_id': 44694, 'author': 'Ja7on', 'author_id': 4602, 'author_profile': 'https://Stackoverflow.com/users/4602', 'pm_score': 0, 'selected': False, 'text': '<p>Something to consider ... not everyone is capable of programming:</p>\n\n<p>Some people just cannot get past things like:</p>\n\n<p>A = 1</p>\n\n<p>B = 2</p>\n\n<p>A = B</p>\n\n<p>(these people will still think A = 1)</p>\n\n<p><a href="http://www.codinghorror.com/blog/archives/000635.html" rel="nofollow noreferrer">Jeff has talked about this too.</a>  In fact, my example is in the link (and explained, to boot).</p>\n'}, {'answer_id': 45128, 'author': 'deadbug', 'author_id': 4646, 'author_profile': 'https://Stackoverflow.com/users/4646', 'pm_score': 0, 'selected': False, 'text': '<p>It may seem weird, but I got started writing code by automating the tasks and data analysis at my former job.  This was accomplished by recording then studying the code an Excel macro generated.  Of course this approach assumes you can learn via VB.</p>\n'}, {'answer_id': 47562, 'author': 'Luther Baker', 'author_id': 4910, 'author_profile': 'https://Stackoverflow.com/users/4910', 'pm_score': 0, 'selected': False, 'text': '<p>Some additional information that someone could attach to Jason Pratt\'s earlier post on <a href="http://www.alice.org/" rel="nofollow noreferrer">Alice</a> ... specifically, a <a href="http://www.alice.org/kelleher/storytelling/" rel="nofollow noreferrer">Storytelling Alice</a> variant.</p>\n\n<p>Although the study presented targets middle school girls, you may find the <a href="http://www.cse.wustl.edu/~ckelleher/kelleherThesis_CSD.pdf" rel="nofollow noreferrer">white paper</a> written by <a href="http://www.cse.wustl.edu/~ckelleher/" rel="nofollow noreferrer">Caitlin Kelleher</a> interesting.</p>\n'}, {'answer_id': 47644, 'author': 'GrizzlyGuru', 'author_id': 4854, 'author_profile': 'https://Stackoverflow.com/users/4854', 'pm_score': 0, 'selected': False, 'text': '<p>One I used with my kids is <a href="http://www.ceebot.com/ceebot/index-e.php" rel="nofollow noreferrer">CEEBot</a>. It\'s not python, but it teaches C / Java style programming in a fun, robot-programming kind of game. It is aimed at 10-15 year olds, but it is a really good one.</p>\n'}, {'answer_id': 48752, 'author': 'David Lambert', 'author_id': 2133351, 'author_profile': 'https://Stackoverflow.com/users/2133351', 'pm_score': 0, 'selected': False, 'text': '<p>Having small, obtainable goals is one of the greatest ways to learn any skill.  Programming is no different.  Python is a great language to start with because it is easy to learn, clean and can still do advanced things.  Python is only limited by your imagination.  </p>\n\n<p>One way to really get someone interested is to give them small projects that they can do in an hour or so.  When I originally started learning python I playing <a href="http://www.codegolf.com" rel="nofollow noreferrer">Code Golf</a>.  They have many small challenges that will help teach the basics of programming.  I would recommend just trying to solve one of the challenges a day and then playing with the concepts learned.  You\'ve got to make learning to program fun or the interest will be lost very quickly.  </p>\n'}, {'answer_id': 50262, 'author': 'Jake Hackl', 'author_id': 5247, 'author_profile': 'https://Stackoverflow.com/users/5247', 'pm_score': 1, 'selected': False, 'text': "<p>If he is interested than I wouldn't worry about focusing on games or whatnot. I'd just grab that beginners 'teach yourself x' book you were about to throw and give it him and let him struggle through it. Maybe talk about it after and then do another and another. After then I'd pair program with him so he could learn how shallow and lame those books he read were. Then I'd start having him code something for himself. A website to track softball stats or whatever would engage him. For me it was a database for wine back in the day. </p>\n\n<p>After that I would start in on the real books, domain design, etc. </p>\n"}, {'answer_id': 50291, 'author': 'jfs', 'author_id': 4279, 'author_profile': 'https://Stackoverflow.com/users/4279', 'pm_score': 2, 'selected': False, 'text': '<p><a href="http://safari.oreilly.com/1592000738" rel="nofollow noreferrer">Python Programming for the absolute beginner</a></p>\n\n<p><a href="http://safari.oreilly.com/images/1592000738/1592000738_xs.jpg" rel="nofollow noreferrer">Python Programming for the absolute beginner cover http://safari.oreilly.com/images/1592000738/1592000738_xs.jpg</a></p>\n'}, {'answer_id': 50351, 'author': 'jfs', 'author_id': 4279, 'author_profile': 'https://Stackoverflow.com/users/4279', 'pm_score': 4, 'selected': False, 'text': '<p>Python package <a href="http://vpython.org">VPython</a> -- 3D Programming for Ordinary Mortal (<a href="http://showmedo.com/videos/video?name=pythonThompsonVPython1&amp;fromSeriesID=30">video tutorial</a>). </p>\n\n<p><a href="http://vpython.org/vpythonprog.htm">Code example:</a></p>\n\n<pre><code>from visual import *\n\nfloor = box (pos=(0,0,0), length=4, height=0.5, width=4, color=color.blue)\nball = sphere (pos=(0,4,0), radius=1, color=color.red)\nball.velocity = vector(0,-1,0)\ndt = 0.01\n\nwhile 1:\n    rate (100)\n    ball.pos = ball.pos + ball.velocity*dt\n    if ball.y &lt; ball.radius:\n        ball.velocity.y = -ball.velocity.y\n    else:\n        ball.velocity.y = ball.velocity.y - 9.8*dt\n</code></pre>\n\n<p><a href="http://vpython.org/bounce.gif">VPython bouncing ball http://vpython.org/bounce.gif</a></p>\n'}, {'answer_id': 53221, 'author': 'Gürkan Yeniçeri', 'author_id': 5479, 'author_profile': 'https://Stackoverflow.com/users/5479', 'pm_score': 1, 'selected': False, 'text': '<p>I skimmed through the comments and looks like nobody mentioned <a href="http://codebetter.com/blogs/karlseguin/archive/2008/06/24/foundations-of-programming-ebook.aspx" rel="nofollow noreferrer">Foundations of Programming</a> from <a href="http://www.CodeBetter.com" rel="nofollow noreferrer">www.CodeBetter.com</a>. Although it requires a bit of foundation, it can certainly be a next step in the learning process.</p>\n'}, {'answer_id': 59925, 'author': 'BrewinBombers', 'author_id': 5989, 'author_profile': 'https://Stackoverflow.com/users/5989', 'pm_score': 0, 'selected': False, 'text': '<p>As a non-programmer myself, I found the book "How to Program" from Pragmatic Programmers very helpful from a rudimentary standpoint. It\'s approachable and easy to read for a beginner. It won\'t take you from beginner to expert, but it will prepare you for what to do once you pick a language and pick up your first "Learn to Program in (language here)" book.</p>\n'}, {'answer_id': 69908, 'author': 'leeborkman', 'author_id': 10934, 'author_profile': 'https://Stackoverflow.com/users/10934', 'pm_score': 0, 'selected': False, 'text': '<p>A couple of other starting platforms:</p>\n\n<ul>\n<li>A good programmable calculator (that\'s what I learnt on back in the 70s), and HP25 then HP41, now TI69, etc.</li>\n<li>Interactive Fiction platforms, like "Inform 7" provide another angle on the whole thing</li>\n<li>Flash/ActionScript</li>\n</ul>\n\n<p>All of these are different and engaging, and any one of these might spark the kind of interest that is required to get a beginner of and running.</p>\n\n<p>LBB</p>\n'}, {'answer_id': 71056, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 0, 'selected': False, 'text': '<p>I\'d recommend <a href="http://www.greenteapress.com/thinkpython/thinkpython.html" rel="nofollow noreferrer">Think Python</a>.</p>\n'}, {'answer_id': 101251, 'author': 'Federico A. Ramponi', 'author_id': 18770, 'author_profile': 'https://Stackoverflow.com/users/18770', 'pm_score': 1, 'selected': False, 'text': '<p>Once he has the basics, I suggest the <a href="http://en.wikipedia.org/wiki/Tower_of_Hanoi" rel="nofollow noreferrer">Tower of Hanoi</a> as a good exercise.\nI recommend beginning with the wooden toy if you have one; let him try to solve the problem by himself and describe his method in a systematic way. Show him where recursion comes into play. Explain him how the number of moves depends on the number of disks.\nThen let him write a program to print the sequence of moves, in your language of choice.</p>\n'}, {'answer_id': 101343, 'author': 'J S', 'author_id': 18786, 'author_profile': 'https://Stackoverflow.com/users/18786', 'pm_score': 0, 'selected': False, 'text': '<p>Your question quite depends on age and education of your brother, but if he is a child/teenager, I would recommend to do some GUI programming or graphic programming first (with Canvas etc.). It looks good, and you have immediate results. Algorithms are boring, and too abstract for young people (before say 15 years old).</p>\n\n<p>When I started programming on ZX Spectrum (I was like 12 years old), I liked to draw various things on the screen, and it was still interesting. I didn\'t learn about real algorithmic techniques until I was maybe 18. Don\'t be mislead that such "simple" programming is a wrong start; the interest of the person learning it is the most important part of it.</p>\n\n<p>So, I would look into PyKDE, PyGTK, PyQt or Python + OpenGL (there are certainly some tutorials on the net, I know of some Czech ones but that won\'t help you :)).</p>\n\n<p>Of course, if your brother is older and has education close to mathematics, you can head directly to algorithms and such.</p>\n'}, {'answer_id': 109612, 'author': 'Gu1234', 'author_id': 407138, 'author_profile': 'https://Stackoverflow.com/users/407138', 'pm_score': 1, 'selected': False, 'text': '<p>Very good video introduction course by Stanford university (no prior knowledge required):</p>\n\n<p><a href="http://see.stanford.edu/see/lecturelist.aspx?coll=824a47e1-135f-4508-a5aa-866adcae1111" rel="nofollow noreferrer">Programming Methodology</a></p>\n\n<p>Will teach you good "methodologies" every programmer should know and some Java programming.</p>\n'}, {'answer_id': 112360, 'author': 'Seth Morris', 'author_id': 13434, 'author_profile': 'https://Stackoverflow.com/users/13434', 'pm_score': 0, 'selected': False, 'text': '<p>Whatever language and environment you choose, if the student wants to learn for professional reasons or to do "real" programming (whatever that is), have them start by writing their starter programs<sup>1</sup> on paper and taking them away to run. Come back with the output and/or error results and have them fix things on paper. </p>\n\n<p>This isn\'t especially harder at first than doing it on-screen and hitting run, but it will make things much easier when they start to discover the wonderful world of bugs.</p>\n\n<p>1) short, "Hello, World!"-type programs that still have some logic and/or calculations, do this up to a few programs that can have bugs</p>\n'}, {'answer_id': 112367, 'author': 'Seth Morris', 'author_id': 13434, 'author_profile': 'https://Stackoverflow.com/users/13434', 'pm_score': 0, 'selected': False, 'text': '<p>Whatever they write, have them step through it in a debugger line-by-line on the first run. Let them <i>see for themselves</i> what the computer is doing. This takes a lot of mystery out of things, reduces intimidation ("oh, each line really is that simple!"), and helps them learn debugging skills and recognize why common errors are common (and why they\'re errors)</p>\n'}, {'answer_id': 166434, 'author': 'Glitch', 'author_id': 324306, 'author_profile': 'https://Stackoverflow.com/users/324306', 'pm_score': 0, 'selected': False, 'text': '<p>+1 to Stanford university lectures. <a href="http://see.stanford.edu/see/courseinfo.aspx?coll=824a47e1-135f-4508-a5aa-866adcae1111" rel="nofollow noreferrer">http://see.stanford.edu/see/courseinfo.aspx?coll=824a47e1-135f-4508-a5aa-866adcae1111</a></p>\n\n<p>They\'re simple, of high quality and I can vouch for their ability to teach beginners(me being one of them).</p>\n'}, {'answer_id': 194830, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 0, 'selected': False, 'text': '<p>I suggest "<a href="http://www.csunplugged.com" rel="nofollow noreferrer">Computer Science Unplugged</a>" as a complementary didactical material.</p>\n'}, {'answer_id': 249289, 'author': 'Tim', 'author_id': 10755, 'author_profile': 'https://Stackoverflow.com/users/10755', 'pm_score': 0, 'selected': False, 'text': '<p>"Who\'s Afraid of C++"\nBy Heller</p>\n\n<p>Might be worth a shot</p>\n'}, {'answer_id': 297600, 'author': 'PoppaVein', 'author_id': 14889, 'author_profile': 'https://Stackoverflow.com/users/14889', 'pm_score': 0, 'selected': False, 'text': '<p><a href="http://msdn.microsoft.com/en-us/devlabs/cc950524.aspx" rel="nofollow noreferrer">Microsoft Small Basic</a> is a free .NET based programming environment aimed to be a "fun" learning environment for beginners. The language is a subset of VB.NET and even contains a "Turtle" object familiar from the Logo language. The website contains a step-by-step tutorial.</p>\n'}, {'answer_id': 297642, 'author': 'Mike Dunlavey', 'author_id': 23771, 'author_profile': 'https://Stackoverflow.com/users/23771', 'pm_score': 0, 'selected': False, 'text': '<p>I agree with superjoe30 above, but I don\'t have enough reputation yet to leave a comment.</p>\n\n<p>I was a C.S. professor for 4 years. The languages were Basic, and then Pascal, but it doesn\'t really matter what the language is.</p>\n\n<p>The biggest lesson I learned as a new prof was, no matter how simple I thought a concept was, it is not simple to a newbie. Never go any faster than your student can go. I can\'t emphasize that enough. Go really, really slow.</p>\n\n<p>I would start with very simple stuff, read and print, maybe a simple calculation, just to get the student used to putting something in and getting something out. Then IF statements. Then really simple FOR loops, always in terms of something the student could write and have some fun with.</p>\n\n<p>Then I would spend about 3 weeks teaching a very simple sort of machine language for a phony decimal machine called SIMPL, that you could single-step. The reason for doing this so the student could see where the "rubber meets the road", that computers do things step-by-step, and it makes a difference what order things happen in. Without that, students tend to think the computer can sort of read their mind and do everything all at once.</p>\n\n<p>Then back to Basic. A couple weeks on arrays, because that is a big speed bump. Then sequential files, which is another speed bump. What I mean by "speed bump" is the student can be sailing along feeling quite confident, and then you hit them with a concept like arrays, and they are totally lost again, until you ease them through it.</p>\n\n<p>Then, with those skills under their belts, I would have them pick a term project, because that is what makes programming interesting. Without a use for it, it\'s really boring. I would suggest a variety of projects, such as games, accounting programs, science programs, etc. It\'s really great to see them get turned on. Often they would ask me for help, and that\'s great, because you know they\'re learning.</p>\n\n<p>While they were doing their projects, we would continue to cover more advanced programming techniques - searching, sorting, merging, how to make a simple database, etc.</p>\n\n<p>Good luck. Teaching is hard work but satisfying when you see students grow.</p>\n'}, {'answer_id': 549131, 'author': 'Esko Luontola', 'author_id': 62130, 'author_profile': 'https://Stackoverflow.com/users/62130', 'pm_score': 1, 'selected': False, 'text': '<p>Book: <a href="http://myflex.org/yf/JavaKid811.pdf" rel="nofollow noreferrer">Java Programming for Kids, Parents and Grandparents</a> (PDF)</p>\n\n<p>I don\'t have personal experience about learning using that book, but it appears to be nice because it quickly goes into producing something visible, and not spending too much time with the syntactic itty bitty details. Has someone here tried using that book?</p>\n'}, {'answer_id': 587826, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 4, 'selected': False, 'text': '<p><strong>Begin with Turtle graphics in Python.</strong></p>\n\n<p>I would use the turtle graphics which comes standard with Python.  It is visual, simple and you could use this environment to introduce many programming concepts like iteration and procedure calls before getting too far into syntax.  Consider the following interactive session in python:</p>\n\n<pre><code>&gt;&gt;&gt; from turtle import *\n&gt;&gt;&gt; setup()\n&gt;&gt;&gt; title("turtle test")\n&gt;&gt;&gt; clear()\n&gt;&gt;&gt;\n&gt;&gt;&gt; #DRAW A SQUARE\n&gt;&gt;&gt; down()        #pen down\n&gt;&gt;&gt; forward(50)   #move forward 50 units\n&gt;&gt;&gt; right(90)     #turn right 90 degrees\n&gt;&gt;&gt; forward(50)\n&gt;&gt;&gt; right(90)\n&gt;&gt;&gt; forward(50)\n&gt;&gt;&gt; right(90)\n&gt;&gt;&gt; forward(50)\n&gt;&gt;&gt;\n&gt;&gt;&gt; #INTRODUCE ITERATION TO SIMPLIFY SQUARE CODE\n&gt;&gt;&gt; clear()\n&gt;&gt;&gt; for i in range(4):\n        forward(50)\n        right(90)\n&gt;&gt;&gt;\n&gt;&gt;&gt; #INTRODUCE PROCEDURES   \n&gt;&gt;&gt; def square(length):\n        down()\n        for i in range(4):\n            forward(length)\n            right(90)\n&gt;&gt;&gt;\n&gt;&gt;&gt; #HAVE STUDENTS PREDICT WHAT THIS WILL DRAW\n&gt;&gt;&gt; for i in range(50):\n        up()\n        left(90)\n        forward(25)\n        square(i)\n&gt;&gt;&gt;\n&gt;&gt;&gt; #NOW HAVE THE STUDENTS WRITE CODE TO DRAW\n&gt;&gt;&gt; #A SQUARE \'TUNNEL\' (I.E. CONCENTRIC SQUARES\n&gt;&gt;&gt; #GETTING SMALLER AND SMALLER).\n&gt;&gt;&gt;\n&gt;&gt;&gt; #AFTER THAT, MAKE THE TUNNEL ROTATE BY HAVING\n&gt;&gt;&gt; #EACH SUCCESSIVE SQUARE TILTED\n</code></pre>\n\n<p>In trying to accomplish the last two assignments, they will have many failed attempts, but the failures will be visually interesting and they\'ll learn quickly as they try to figure out why it didn\'t draw what they expected.</p>\n'}, {'answer_id': 658598, 'author': 'jbdavid', 'author_id': 6314, 'author_profile': 'https://Stackoverflow.com/users/6314', 'pm_score': 1, 'selected': False, 'text': '<p>once you\'ve taught them how to program, they might want to learn how to develop software.. \nfor that I think Greg Wilson\'s <a href="http://www.swc.scipy.org/" rel="nofollow noreferrer">Software Carpentry</a> course is great.. it also uses Python as the student\'s language. </p>\n'}, {'answer_id': 1097143, 'author': 'bastianneu', 'author_id': 94379, 'author_profile': 'https://Stackoverflow.com/users/94379', 'pm_score': 1, 'selected': False, 'text': '<p>I think Python is a really great Language to start with: :-)</p>\n\n<p>I suggest you to try <a href="http://www.pythonchallenge.com/" rel="nofollow noreferrer">http://www.pythonchallenge.com/</a> </p>\n\n<p>It is build like a small Adventure and every Solutions links you to a new nice Problem.</p>\n\n<p>After soluting the Problem you get access to a nice Forum to talk about your Code and get to see what other people created.</p>\n'}, {'answer_id': 1230068, 'author': 'Ram Rachum', 'author_id': 76701, 'author_profile': 'https://Stackoverflow.com/users/76701', 'pm_score': 1, 'selected': False, 'text': '<p>I can recommend my project, <a href="http://pythonturtle.com" rel="nofollow noreferrer">PythonTurtle</a>. </p>\n\n<p>Summary:</p>\n\n<p>PythonTurtle strives to provide the lowest-threshold way to learn Python. Students command an interactive Python shell (similar to the IDLE development environment) and use Python functions to move a turtle displayed on the screen. An illustrated help screen introduces the student to the basics of Python programming while demonstrating how to move the turtle.</p>\n\n<p>It looks like this:</p>\n\n<p><a href="http://www.pythonturtle.com/screenshot.gif" rel="nofollow noreferrer">alt text http://www.pythonturtle.com/screenshot.gif</a></p>\n'}, {'answer_id': 1230194, 'author': 'Sean', 'author_id': 144121, 'author_profile': 'https://Stackoverflow.com/users/144121', 'pm_score': 2, 'selected': False, 'text': '<p>I think Python is a great idea.  I would give him a few basic assignments to do on his own and tell him that any dead ends he hits can probably be resolved by a trip to google.  For me, at least, solving a problem on my own always made it stick better than someone telling me the solution.</p>\n\n<p>Some possible projects (in no particular order):</p>\n\n<ul>\n<li><p>Coin flip simulator.  Let the user input a desired number of trials for the coin flipping.  Execute it and display the results along with the percentage for heads or tails.</p></li>\n<li><p>Make a temperature converter with a menu that takes user input to choose which kind of conversion the user wants to do.  After choosing the conversion and doing it, it should return to the main menu.</p>\n\n<p>Here\'s an example of an extended converter with the same idea: <a href="http://pastebin.org/6541" rel="nofollow noreferrer">http://pastebin.org/6541</a></p></li>\n<li><p>Make a program that takes a numeric input and displays the letter grade it would translate to.  It\'ll end up evaluating the input against if and elif statements to find where it fits.</p></li>\n<li><p>Make a simple quiz that goes through several multiple choice or fill in the blank questions.  At the end it will display how the user did.  He can pick any questions he wants.</p></li>\n<li><p>Take an input of some (presumably large) number of pennies and convert it into bigger denominations.  For example, 149 pennies = 1 dollar, 1 quarter, 2 dimes, and 4 pennies.</p></li>\n<li><p>Create a simple list manager.  Be able to add/delete lists and add/delete entries in those lists.  Here\'s an example of a christmas list manager: <a href="http://pastebin.org/6543" rel="nofollow noreferrer">http://pastebin.org/6543</a></p></li>\n<li><p>Create a program that will build and then test whether entered numbers form a magic square (with a 2D array).  Here\'s some sample code, but it should really print out the square at each step in order to show where the user is in terms of buliding the square: <a href="http://pastebin.org/6544" rel="nofollow noreferrer">http://pastebin.org/6544</a></p></li>\n</ul>\n\n<p>I would also suggest doing some stuff with xTurtle or another graphics module to mix things up and keep him from getting boring.  Of course, this is very much practice programming and not the scripting that a lot of people would really be using python for, but the examples I gave are pretty much directly taken from when I was learning via python and it worked out great for me.  Good luck!</p>\n'}, {'answer_id': 1335529, 'author': 'Rob Sobers', 'author_id': 132931, 'author_profile': 'https://Stackoverflow.com/users/132931', 'pm_score': 1, 'selected': False, 'text': '<p>Try to find a copy of <a href="http://en.wikipedia.org/wiki/Why&#39;s_(poignant)_Guide_to_Ruby" rel="nofollow noreferrer">Why\'s (Poignant) Guide to Ruby</a> online.  The original site is offline but I\'m sure there are a few mirrors out there.  It\'s not your typical programming guide; it puts a unique (and funny) spin on learning a new language that might suit your friend. Not to mention, Ruby is a great language to learn with.</p>\n'}, {'answer_id': 1928706, 'author': 'Rajavanya Subramaniyan', 'author_id': 121067, 'author_profile': 'https://Stackoverflow.com/users/121067', 'pm_score': 0, 'selected': False, 'text': '<p>Use real world analogy and imaginary characters to teach them programming. Like when I teach people about variables and control statements etc.</p>\n\n<p>Usually I start with calculator example. I say imagine u have a box for every variable and u have 10 card boards with numbers 0 - 9 printed on them. Say that the box can hold one cardboard at a time and similar ways to explain how programming elements work</p>\n\n<p>And emphasis on how every operator works.. like the simple \'=\' operator always computes the right hand side first into one value. and put that value into box named "num_1" (which is variable name)</p>\n\n<p>This has been very very effective, as they are able to imagine the flow very quickly.</p>\n'}, {'answer_id': 2477742, 'author': 'Łukasz Lew', 'author_id': 61342, 'author_profile': 'https://Stackoverflow.com/users/61342', 'pm_score': 2, 'selected': False, 'text': '<p>Just make it fun !</p>\n\n<p>Amazingly Scala might be the easiest if you try <a href="http://www.kogics.net/sf:kojo" rel="nofollow noreferrer">Kojo</a></p>\n'}, {'answer_id': 2589272, 'author': 'Jacinda', 'author_id': 307293, 'author_profile': 'https://Stackoverflow.com/users/307293', 'pm_score': 2, 'selected': False, 'text': '<p>If your brother likes puzzles, I would recommend <a href="http://www.pythonchallenge.com" rel="nofollow noreferrer" title="Python Challenge">Python Challenge</a>.  I wouldn\'t use it as a formal teaching tool in a 1 on 1 tutorial, but it\'s something he can do when you\'re not together to challenge himself and have some fun.</p>\n'}, {'answer_id': 2658336, 'author': 'Mithrill', 'author_id': 318955, 'author_profile': 'https://Stackoverflow.com/users/318955', 'pm_score': 1, 'selected': False, 'text': '<p><a href="http://academicearth.org/subjects/computer-science/category:14" rel="nofollow noreferrer">Academic Earth</a> offers links to free Computer Science courses from top universities. They have a section geared towards Beginning Computer Science. The languages taught in the beginning courses vary:</p>\n\n<ul>\n<li><strong>MIT</strong> -   Introduction to Computer Science and Programming - Python</li>\n<li><strong>Stanford</strong> - Computer Science I: Programming Methodology - Java</li>\n<li><strong>Harvard</strong> - Introduction to Computer Science I - C (main focus),\nwith a few others sprinkled in for\ngood measure (e.g., SQL, PHP, LISP,\nAssembler, etc.)</li>\n<li><strong>Berkeley</strong> - a dialect of the LISP language</li>\n</ul>\n'}, {'answer_id': 3964594, 'author': 'inspectorG4dget', 'author_id': 198633, 'author_profile': 'https://Stackoverflow.com/users/198633', 'pm_score': 3, 'selected': False, 'text': '<p>I don\'t know if anyone has mentioned this here, yet, but You might want to check out <a href="http://www.zedshaw.com/" rel="nofollow">Zed Shaw</a>\'s <a href="http://www.learnpythonthehardway.com" rel="nofollow">Learn Python the Hard Way</a></p>\n\n<p>Hope this Helps</p>\n'}, {'answer_id': 4390102, 'author': 'Steve V.', 'author_id': 530098, 'author_profile': 'https://Stackoverflow.com/users/530098', 'pm_score': 2, 'selected': False, 'text': '<p><a href="http://www.pythonchallenge.com/" rel="nofollow">Python Challenge</a></p>\n'}, {'answer_id': 4581575, 'author': 'chrisfs', 'author_id': 442158, 'author_profile': 'https://Stackoverflow.com/users/442158', 'pm_score': 2, 'selected': False, 'text': "<p>After going through a few free e-books, I found the best book for learning to program was Head First Programming published by O'Reily Press. It uses Python as the language and gives you programs to work on from the very start. They are all more interesting that 'Hello World'.\nIt's well worth the money I spent on it, and since it's been out for a bit you may be able to find a cheaper used copy on Ebay or Amazon. </p>\n"}, {'answer_id': 5978706, 'author': 'Andrew', 'author_id': 346387, 'author_profile': 'https://Stackoverflow.com/users/346387', 'pm_score': 0, 'selected': False, 'text': "<p>Ask your brother if there's something he'd like to make a program do or invent a project for him that you think would interest him.  </p>\n\n<p>Something where he can know what the output is supposed to be and point him to the materials(on-line or in print) pertinent to the project.   If he's coming into python or programming 'cold' be patient as he works his way through understanding the basics such as syntax, errors, scoping and be prepared to step aside and let him run and make his own mistakes when you start to see the light bulb go on over his head.</p>\n"}, {'answer_id': 6165721, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 0, 'selected': False, 'text': '<p>I highly recommend <a href="https://rads.stackoverflow.com/amzn/click/com/1590282418" rel="nofollow noreferrer" rel="nofollow noreferrer">Python Programming: An Introduction to Computer Science 2nd Edition</a> by <a href="http://mcsp.wartburg.edu/zelle/" rel="nofollow noreferrer">John Zelle</a>. It is geared towards beginners, and deals with the <em>semantics</em> of programming. After reading you will be able to pick up other languages much faster because of Zelle\'s semantic vs. syntactic approach. Check it out!</p>\n'}]
['https://Stackoverflow.com/questions/3088', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/92/']