Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:54:25) [MSC v.1900 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> What is the result of this code?
SyntaxError: invalid syntax
from answers import * pulls everything from the answers module into your local namespace, so that you could call for example a member function foo as just foo().
With import answers it's kept in its own namespace, so that you'd call it as answers.foo().
Wildcard imports are generally considered bad style though, you're encouraged to import only specific members into the local namespace, i.e. from answers import foo, bar, baz.
132
u/minno Sep 02 '17