Explanation:
The correct answers are:
A: from pymod import *
pyvar = 1
from pymod import * imports all names (variables, functions, etc.) defined in the pymod module into the current namespace, including pyvar.
After importing, you can access or modify pyvar directly.
Note: Overwriting pyvar with pyvar = 1 will replace its value with 1 in the current namespace.
D: import pymod pymod.
pyvar = 1
import pymod imports the entire pymod module.
You can then access pyvar as pymod.pyvar.
Assigning pymod.pyvar = 1 modifies the value of pyvar within the pymod module’s namespace.
upvoted 1 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
flthymcnsty
1 month ago