That's right, letlist is computed properly and you can print it. But you need to return it from the function. Otherwise this:
doesn't make much sense. What are you assigning to my_dict?
At least that is what causes the error I get by running your code. What error do you get?
my_dict = dictfunc()
doesn't make much sense. What are you assigning to my_dict?
At least that is what causes the error I get by running your code. What error do you get?