I need to be able to pass dictionary elements into a function but it keeps telling me it is not the correct type.
Code:my_function(my_dict['element'])This does not work. It won't convert the dict_element to a string. Somehow I need to pass those elements into the function. Any suggestions are appreciated.Code:def my_function(dict_element):var = "%s" % dict_element