Skip to Main Content
Learn to Program with Minecraft
book

Learn to Program with Minecraft

by Craig Richardson
November 2015
Beginner to intermediate content levelBeginner to intermediate
320 pages
7h 49m
English
No Starch Press
Content preview from Learn to Program with Minecraft

5FIGURING OUT WHAT’S TRUE AND FALSE WITH BOOLEANS

image

You ask yes-or-no questions all the time: Is it raining? Is my hair too long? Once you know whether the answer is yes or no, you can decide what to do next: bring an umbrella, or not; trim your hair, or not. In all these situations, what you do depends on whether the answer to the question is yes or no. Deciding what to do based on the answer to a question is also important in programming. In this chapter, you’ll learn how to ask questions in Python.

In programming, the questions you ask are usually about comparing values. Is one value equal to another? Is a value bigger or smaller than another? ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Minecraft Modding For Kids For Dummies

Minecraft Modding For Kids For Dummies

Sarah Guthals, Stephen Foster, Lindsey Handley
Minecraft Modding with Forge

Minecraft Modding with Forge

Aditya Gupta, Arun Gupta
Adventures in Minecraft, 2nd Edition

Adventures in Minecraft, 2nd Edition

David Whale, Martin O'Hanlon

Publisher Resources

ISBN: 9781457198823Errata Page