Exam4Training

What can you do if you don’t like a long package path tike this one0 import alpha.beta.gamma.delta.epsiIon.zeta

What can you do if you don’t like a long package path tike this one0 import alpha.beta.gamma.delta.epsiIon.zeta
A . you can make an alias for the name using the a 1 i a s keyword
B . nothing; you need to come to terms with it
C . you can shorten it to alpha. zeta and Python will find the proper connection
D . you can make an alias for the name using die as keyword

Answer: D

Explanation:

Reference: https://stackoverflow.com/questions/706595/can-you-define-aliases-for-imported-modules-in-python

Exit mobile version