Avatar ·

Converting a list of strings to a list of numbers

📁 List, Advanced Python Topics

a is a list of strings: ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0']

for el in a:    el = int(el)

I tried to convert to numbers this way, but it only converts within the scope of this loop

 

Avatar ·

"

For someone who doesn't understand how .deb packages are structured, this task may seem overwhelming, no matter how simply it's written in the guides.

The first thing you need to have is a working setup.py, so that your application can correctly collect all necessary files and dependencies, compile where needed, etc. No setup - no package.

Second - your best friend from now on is . dh - meaning DebHelper. Helpers are special utilities that help you build a package. This tool will read your , download the required Python version, download all dependencies, compile everything needed, and your application will not only end up in a package, but also automatically in . That is, your application will be deployed from the package already in an isolated wrapper and in

Log in to leave an answer

Blogs