Simply remove the dot for the relative import and do:
from p_02_paying_debt_off_in_a_year import compute_balance_after
More Related Contents:
- How do I unload (reload) a Python module?
- Importing modules from parent folder
- `from … import` vs `import .` [duplicate]
- Why is Python running my module when I import it, and how do I stop it?
- How to import a Python class that is in a directory above?
- Callable modules
- List all the modules that are part of a python package?
- Importing modules: __main__ vs import as module
- Import a python module without running it
- Python: Why should ‘from import *’ be prohibited?
- Import module works in terminal but not in IDLE
- Can you define aliases for imported modules in Python?
- How to properly use relative or absolute imports in Python modules?
- How to reference python package when filename contains a period
- Loading JSON file Using Python Utils Library
- How do I import a module given the full path?
- Python error “ImportError: No module named”
- What exactly does “import *” import?
- How to postpone/defer the evaluation of f-strings?
- Should wildcard import be avoided?
- PyCharm error: ‘No Module’ when trying to import own module (python script)
- Does Python have a package/module management system?
- In Python, can I call the main() of an imported module?
- django import error – No module named core.management
- Reading a file using a relative path in a Python project
- How do I extend a python module? Adding new functionality to the `python-twitter` package
- Error: No module named ‘fcntl’
- Importing a library from (or near) a script with the same name raises “AttributeError: module has no attribute” or an ImportError or NameError
- What’s the difference between a module and package in Python?
- Import statement works on PyCharm but not from terminal