print "tell me your name" name = raw_input() while True: print "hello ", name
I’ve decided to use Python to teach my 8 year old daughter how to program. With the first lesson I tried to recreate the simple excitement I felt at age 8 when using BASIC to tell the computer to do things
We typed the program into ipython in bits and saw what it did. Then we typed it into mousepad and saved it and ran it.
We talked a little about the concept of loops. We talked a little about the concept of variables and of literals.
The lesson lasted 15-20 minutes