nerdexam
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)
  • A
    8% (5)
  • B
    79% (48)
  • C
    13% (8)

Community Discussion

No community discussion yet for this question.

Full PCAP-31-03 Practice