Feb-24-2020, 12:23 PM
Just tell Python it's a dictionary. The syntax could be for list and so it is confused
variable = dict() variable['txt'] = 'welcome' print(variable)
Output:{'txt': 'welcome'}