© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
J. R. PaynePython for Teenagershttps://doi.org/10.1007/978-1-4842-9988-3_4

4. Making Decisions

James R. Payne1  
(1)
Gainesville, GA, USA
 

When it comes to fighting crime and dealing with villainous villainy (trademark pending!), we superheroes 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 ...

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.