How to compile the GCC on Ubuntu from source?
Fourth Edition of Introduction to Programming with Python

Announcement of the fourth edition of the book Introduction to Programming with Python.
Python Research in Brazil 2023
Research conducted on Brazilians who use Python in Brazil and abroad.
The Junior Programmer’s Path
The beginning of a junior developer’s career is not one of the easiest.
Python Research in Brazil 2022
Research conducted on Brazilians who use Python in Brazil and abroad.
Interest and Logic
One of the logic problems in programming that most break the head of those who are starting are the problems with percentage calculation or interest.
It starts like this: Calculate 10% increase on a salary of $2,500.00
Depending on the student’s math background, percentage is learned in 4th/5th grade… some concepts need to be remembered. As the name says, 10% means that for every 100 of the value, you should subtract 10. The calculation is quite simple and can be done with a multiplication. For example: 10/100 * 2500, which results in 250. So far so good, but some students ask why sometimes we do 0.1 * 2500. Well, it’s just the way of representation that changes, because 10/100 is equivalent to 0.1, alias 100/1000 also and so on. But this is the easy part and after getting the notation right, things start working again.
Programmers
Today is workday, and I decided to write a little bit about a profession that has been misrepresented in recent times. I’m a professional programmer, software developer, system analyst, software architect, but always a programmer. When I was studying, the term programmer had very little prestige. It was normally used with the connotation of someone who lacked instruction or did not have a higher education and only did what they were told to do. At that time, system analysts were kings, and they only designed systems. The programmer was responsible for small pieces of code. Database, screens, flows, everything was handed over to the programmer, who sometimes was seen as just a translator of the project into code.
Graphical Effects with Python, Tkinter, Cython, and Numba
Yesterday, Saturday, I felt like creating a flame effect (fire) in Python. This effect was quite popular in the early 90s. I remembered that the algorithm was quite simple, but there were some tricks to do with the color palette.
I found this article with the implementation in C: https://lodev.org/cgtutor/fire.html
From the same article, we can get an idea of how the effect looks:
After reading the article and watching some videos on YouTube, I faced two problems:
Telegram Queries - Interesting Questions
Last week I had the opportunity to see three interesting questions discussed in the Telegram groups, but the explanation would be too long for a chat.
Why True, True, True == (True, True, True)
returns True, True, False
?
This question was presented as a weird syntax of Python, but it’s actually a visual trap. Look at the operator ==
(equal equal).
A bot for Telegram with Tic-Tac-Toe.
This post is a reissue of the article published in the magazine Portugal a Programar number 55 from March 2017, pages 26 to 34.
In a world with so many instant messaging applications, Telegram stands out for the rich API it provides for creating bots. Bots are small programs that can interact with users and provide services, such as executing commands, managing files or images, and even proposing games!
The Python community has long explored libraries like Telebot and more recently, Telepot. Although the difference in the names of the two is just one letter, the design of Telepot seems more robust to me, and best of all: it integrates asynchronous calls!