Answer the question
In order to leave comments, you need to log in
How to make even columns when numbering?
I render the list like this:
cur.execute("SELECT * FROM users WHERE idspq = ?", (idspq, ))
data = cur.fetchall()
text = '\n'.join(f'{i}. {row[3]} {row[5]}' for i, row in enumerate(data, 1))
Answer the question
In order to leave comments, you need to log in
As an option - add zeros before the numbers (if the entries < 100 - for the first nine, < 1000 - for 1-99, etc.)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question