Learn Python programming basics quickly and delightfully with classic nursery rhymes and fairy tales like you've never seen them before- written as computer programs!
When you run this book's Python programs on your computer, you'll see the nursery rhymes and fairy tale stories printed out on your screen! As you turn the pages of this picture book, you will:
- Learn to code with your favorite nursery rhymes and fairy tales translated logically into Python programs
- Enjoy fifteen nursery rhymes and seven fairy tales written in both normal sentences and in Python code
- Be entertained by full-page, whimsical illustrations in premium color that accompany the code
- Gain the knowledge you need to write your own programs
Have fun learning to code through nursery rhymes and fairy tales retold for the 21st century. Get ready for storytime...and coding time!
When my daughter was about 10+/-2, I gave her a computer and a book on how to make her own games in python. It worked!!! Today I told her I know what book I'll give her kids when they can read/write :-D Good work!
Great idea and quite nicely done, but within 5 minutes I found a mistake:
In Humpty, you say "because any 'if' condition evaluates to a boolean and does not need to be compared to True" when in fact the point is that "if" needs a boolean which is usually obtained from comparisons, but "humpty_on_wall" is already a boolean. The way you put it is that you compare the result of the 'if' with a boolean which would make the 'if' sort of "disappear" as already "used" in the operation before the comparison.
Thanks for your comment. My ordering is referring to the condition’s evaluation: humpty_on_wall stores True, so the if condition evaluates to True, and the block executes.
You group 'if' with humpty_on_wall then say it's not necessary to compare the result with "true". Whatever is AFTER the if is evaluated first, and indeed it doean't need a comparison because it's already boolean. Read it again :-)
The way to put it is that since humpty_on_wall IS already a boolean, (as opposed to the other variables which are strings therefore DO need to be compared)... of course; write it nicer; you do write nice :-)
When my daughter was about 10+/-2, I gave her a computer and a book on how to make her own games in python. It worked!!! Today I told her I know what book I'll give her kids when they can read/write :-D Good work!