-
Book Overview & Buying
-
Table Of Contents
Applied Computational Thinking with Python - Second Edition
By :
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:
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 one line at a time—it reads the first line, then the second line, and so on until the last one. Using logical reasoning allows us to compare things before moving on, return to a previous line of code, and much more...