4

Understanding Logical Reasoning

In this chapter, we will explore logical reasoning processes, such as conditional statements, algorithmic reasoning, and Boolean logic. We will explore inductive and deductive reasoning before delving deeper into some logic operators.

In addition, we will be looking at writing algorithms using logic to solve computational thinking problems.

In this chapter, we will cover the following topics:

  • Understanding the importance of logical reasoning
  • Using Boolean logic and operators

When solving computational thinking problems, logical reasoning is necessary. We all know that programming code has steps that are followed linearly. Imagine we have 10 lines of code. If we do not apply logical reasoning, the code reads ...

Get Applied Computational Thinking with Python - Second Edition 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.