Question: 8 . Consider the following code in the file my _ code.py a directory named mypackage with _ _ init _ py . def print
Consider the following code in the file my code.py a directory named mypackage with initpy
def printhello:
printHello
Which of the following two statements are the right ways to access the function in the method?
from mypackage.mycode import printhello
printhello
import mycode
printhello
from mypackage import printhello
printhello
from mypackage import mycode
my code.printhello
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
