Import assets

Report a typo

You need to import the icon object from the images module inside the assets package, which is located in the src package. Complete the import statements accordingly.

Directory structure:

src/
│── __init__.py
│── src.py
│── assets/
│   │── __init__.py
│   │── assets.py
│   │── images/
│   │   │── __init__.py
│   │   │── images.py  # Contains 'icon'
Fill in the gaps with the relevant elements
from  import assets           # in src.py
from . import   # in assets.py
..images.icon

Create a free account to access the full topic