PCAP Modules and Packages • Set 7
PCAP Modules and Packages Practice Test 7 — 15 questions with explanations. Free, no signup.
A package 'mypackage' has subpackages 'sub1' and 'sub2'. In sub1/__init__.py, there is: from sub2 import helper. When importing mypackage, an ImportError occurs: No module named 'sub2'. What is the most likely cause?
Choose an answer to begin — your selection is scored in the full session.
15 questions · instant feedback and full explanations after every question.