How to implement the Pascal Triangle in Python: practice with loops and strings

The Pascal Triangle is a well-known number pattern in mathematics. Because of the way it is created, it is helpful to practice loops and strings. Let’s see how to implement the Pascal Triangle in Python. In this case, we can practice loops by creating each row of the triangle. We can also practice strings because […]

How to implement the Pascal Triangle in Python: practice with loops and strings Read More »

Predicate logic and quantifiers: solutions to the textbook exercises

In this article, you will see a video explaining predicate logic and quantifiers. After that, I’ll show the solution to the first five exercises from the text-book that professors are using to teach Discrete Mathematics in most universities. Find below the solution to the first five exercises from the text-book: Discrete Mathematics and Application by

Predicate logic and quantifiers: solutions to the textbook exercises Read More »

The definitive example to learn recursion and backtracking: the maze problem

Recursion is a very important tool in programming. It is also difficult to understand. In this post, I want to show an example of a problem that can be solved with recursion and will help you understand how to use backtracking. Backtracking is a useful technique we can use to verify all the possible solutions

The definitive example to learn recursion and backtracking: the maze problem Read More »

What is an abstraction in programming and why it is important?

Abstraction is one of the most important concepts in programming. It is hard to write quality code in a programming language without a deep understanding of this concept. Abstraction is: “the purposeful suppression or hiding of some detail of a process or artifact in order to bring out more clearly other aspects details or structure”

What is an abstraction in programming and why it is important? Read More »

What are the differences between Computer Science, Information Systems and Information Technology

One of the most asked computing-related questions is: What are the differences between Computer Science, Information Systems and Information Technology?  The main differences are as follows: Computer Science (CS) focuses on Theory, Principles and Innovation on Application Technologies, Software Methods and Technologies, Systems Infrastructure. The practical component is low. Information Systems (IS) focuses on Application,

What are the differences between Computer Science, Information Systems and Information Technology Read More »

How to learn Object-Oriented Programming (examples in Python)

Object-Oriented Programming is one of the most used programming paradigms to develop software. This article shows a series of posts I wrote about object-oriented programming in Python, and the right order you must follow to read them. The study of Object-Oriented Programming (OOP), as the study of many other subjects, is divided into topics or

How to learn Object-Oriented Programming (examples in Python) Read More »

How to extract digits from a number from right to left without using strings in Python

Working with numbers is one of the first skills you should get when learning programming. It does not matter what programming language you are learning. This is always useful because it helps you to learn how algorithms work. The short answer to this question is to use operations from mathematics: division, the remainder of division

How to extract digits from a number from right to left without using strings in Python Read More »