pymod.py file contains =>
pyvar = 1
def pyfun():
print(pyvar)
python3 =>
>>> import pymod
>>> pymod.pyfun()
1
>>> from pymod import pyfun
>>> pyfun()
1
>>> from pymod import *
>>> pymod.pyfun()
1
>>> import pyfun from pymod
File "<stdin>", line 1
import pyfun from pymod
^
SyntaxError: invalid syntax
A,B, C are all correct. But B is better than C.
Best answer : A & B
This section is not available anymore. Please use the main Exam Page.PCAP Exam Questions
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.
macxsz
3 years, 2 months agoNorasit
3 years, 2 months agorocky48
3 years, 3 months agozantrz
1 year, 5 months agoDTL001
3 years, 6 months ago