Iteration in python dictionary -
I populate a dragon dictionary based on certain conditions.
My question is:
Can we retrieve the word in the same order because it's population?
questions_dict = {} data = str (header_arr [opt]) + str (line) questions_dict.update ({data: Xl_data}) valid_xl_format = 7 if (type.lower () == "Ma" or type.lower () == "mc"): data = ARR (header_ar [opt]) + str (line) question_date. Update ({Data: xl_data}) valid_xl_format = 7
If I repeat, then it is not in order, in order for
in the query: logging .debug ("% s:% s"% (k, questions_dict [K])
in order to keep track of a dictionary population , come A type of requirement is different from Paco dict. / Code> (commonly known as "ordered commands"), such as third-party modules, or, if you can upgrade to Python 2.7 , so.
Comments
Post a Comment