© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
A. ElumalaiIntroduction to Python for Kids https://doi.org/10.1007/978-1-4842-6812-4_9

9. Follow My Command!

Aarthi Elumalai1  
(1)
Chennai, Tamil Nadu, India
 

In the previous chapter, we learned all about strings and how to use them to create strings of letters and numbers, how to manipulate the strings in any way we want, how to get input from the users and convert it into the data type we want, and how to format outputs (especially in print statements) to our preference.

In this chapter, let’s look at how to command our computers with “if and else” statements.

True or False

In programming, true or false determines the direction your program goes. If “something” ...

Get Introduction to Python for Kids: Learn Python the Fun Way by Completing Activities and Solving Puzzles 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.