I am relatively new to python. I am calling a a function from another script (imported) from the python shell. However, when I call a variable created in that function (after calling it) the variable hasn't been defined. I thought it was a global issue so I made the variable global in the function but it still is not defined after i call the function. When I put the function right into the python shell it works and the variable is defined. How can I access a variable created in a function in an imported script?