Python_Institute
PCAP-31-03 · Question #40
A Python module named pymod, py contains a function named pyfun ( ). Which of the following snippets will let you invoke the function? (Select two answers)
The correct answer is B. Import pymod pymod. Pyfun ( ) D. From pymod import pyfun pyfun ( ). See the full explanation below for the reasoning.
Question
A Python module named pymod, py contains a function named pyfun ( ). Which of the following snippets will let you invoke the function? (Select two answers)
Options
- AFrom pymod import * pymod.pyfun ( )
- BImport pymod pymod. Pyfun ( )
- CImport pyfun from pymod pyfun ( )
- DFrom pymod import pyfun pyfun ( )
How the community answered
(61 responses)- A8% (5)
- B79% (48)
- C13% (8)
Community Discussion
No community discussion yet for this question.