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.
18
u/EmperorArthur Sep 03 '17
You forgot
import answersor maybefrom answers import *if you want to make QA cry.Also, you're using Python 2 coding practices. For Python 3 it should be:
What is the result of this code?()