New to python. I have a tuple variable containing some information and i convert it into list. When I print each data element out by using my for loop, I got.
for data in myTuple:
print list(data)
['1', " This is the system 1 (It has been tested)."]
['2', ' Tulip Database.']
['3', ' Primary database.']
['4', " Fourth database."]
['5', " Munic database."]
['6', ' Test database.']
['7', ' Final database.']
The problem is how I get the the number (which is in single quote/double quotes) and store it in a dictionary as below:
{’1’: 'This is the system 1 (It has been tested).', ’2’: 'Tulip Database.', ...}
Thank you.