Question: Consider a package, Shapes, that contains the modules square.py , rectangle.py , and circle.py . Which of the following statements should be used to import

Consider a package, Shapes, that contains the modules square.py, rectangle.py, and circle.py. Which of the following statements should be used to import rectangle.py?
A. import Shapes.rectangle
B. import rectangle.py
C. import Shapes.rectangle.py
D. import Shapes
import rectangle

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!