“I'm learning Python this semester as part of my degree and I found your way of explaining things way better than my professor's (well, at least it works for me).” -- Rochan, about puzzle-based learning
“I'm just about done with "Brain Games Python". Your material is outstanding and I've learned a tremendous amount!” -- Jim Woodword, about Brain Games Python
Here are a few example
# PUZZLE
'''Bob is 4 years younger than Frank and 10 years older than Alice. Ann is with 35 years 6 years older than Alice. What's the age difference (in years) between the oldest and youngest person?'''
Can you solve this puzzle?
Or try the next
# PUZZLE
[11, -10, 4, -3, 4, 4, ?]
What's the next sequence element?
Here's a third more Pythonic
# PUZZLE
a, b = True, True
if b or a or not a and not
if
print('love')
elif b and a or not
print('42')
print('42')
elif a and b or not
if a or b or not b or not
print('42')
print('yes')
print('yes')
The book is full with 99 such brain puzzles that make you smarter -- in logics, intelligence, and Python programming!
(Written for absolute beginners and intermediates in the Python programming language.)
Table of Contents
1 Programming Your Intelligence
1.1 Intended Audience
1.2 Puzzle-based Learning to Code
1.3 How to Read This Book
1.4 How to Test and Train Your Skills?
2 How to Boost Your Intelligence? 10 Tips From Science
It keeps me motivated that yes am into python by solving each puzzle a day and never makes me feel that am lacking in my skills. A wonderful short book! :)