String conversion in Python
In order to convert a number to a string in Python, we use the str() function, and to convert a string to a number, we use int() function (pic. 1) Picture 1. Data conversion Firstly, we create a string ‘234’ (pic. 1) and then add 2 to it. But the addition…
Pygame and game development
What is Pygame Pygame is a library of modules for the Python language, created for the development of 2D games. Pygame can also be called a framework. In programming, the concepts of “library” and “framework” are somewhat different. But when it comes to the classification of a particular instrument, everything is not so simple. In…
Learning to create Python multi-threaded and multi-process
This article is not useful for experienced Python developers. It is rather a superficial overview of Python multi-threaded features for those who recently started learning Python. Unfortunately, you cannot find tons of material about multithreading in Python. Moreover, quite often I meet Python beginners who don’t know about GIL, for example. In this article, I…