© James R. Payne 2019
James R. PaynePython for Teenagershttps://doi.org/10.1007/978-1-4842-4550-7_4

4. Making Decisions

James R. Payne1 
(1)
Deerfield Beach, FL, USA
 

When it comes to fighting crime and dealing with villainous villainy (trademark pending!), we super heroes often find ourselves facing forks in the road: should we save the helpless damsel being thrown off the side of the building or do we let her plunge to the ground so that we can nab the bad guy? Do we wash our cape today or can we go one more day without it smelling too funky?

At the end of the day, the majority of fighting crime – and programming for that matter – comes down to one thing: making decisions.

You have probably heard the statement, “Every action has a reaction.” Well, ...

Get Python for Teenagers: Learn to Program like a Superhero! now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.