Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Maybe.
It's not really clear what exactly you want to do.
If you turn each individual tuple, then write a function like this:
some_dict = {}
some_dict["letter"] = db_row[0] # db_row - кортеж
...
return some_dict
some_dict = {}
... # do cycle
some_dict[cha_index] = cha[cha_index] # cha_index - индекс значения в списке.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question