Python 3.8 error
ImportError: cannot import name \'mydb\' from partially initialized module \'connection\' (most likely due to a circular import) (C:\\U sers\
The order of the imports matters:
Example:
# A.py # empty file
# B.py import A
# file1.py import A # A gets imported before B can import A import B # B tries to re-import A but A is already imported
change the order to:
# file1.py import B import A