Python

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 »

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 »

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 »