Jan-15-2020, 08:51 AM
Think about what you're doing: on line 22, you call the function and don't do anything with its return value, so it's just thrown away. Either assign it to a variable and then use that variable (which you already know how to do, e.g. lines 2 or 3) or use the value directly in an expression as shown above (though you already seem to know how to do that too: it's exactly what you're doing with the call to
On line 23, you try to print the value of
enumerate
on line 8).On line 23, you try to print the value of
msg
, but the variable doesn't exist outside of the scope of the pullData
function. Perhaps you need to revise the concept of scope?