Logic in Computing

Learn how logic works in computing.

There’s a definite bridge between logic and computing and, more specifically, programming. Here are several key ideas from logic that serve as stepping stones to demonstrate this strong connection:

Note: Even if you don’t understand a word of Python or programming at the moment, don’t worry because teaching programming is not the objective of this lesson. The whole point is to appreciate that not even a basic program can be written in any programming language without the deep usage of operational logic at almost every step of the program.

  • Symbolic representation: Logic uses symbols to represent propositions, relationships, and operations. This is akin to variables, keywords, and function names in programming. Let’s spot the similarity in symbolic representation between logical propositions and variables in the following code:

Get hands-on with 1400+ tech skills courses.