I have 2 files: print.py and cool.py. They are in the same map.
print.py:
def test():
print('cool')
cool.py:
from print import test
test()
I get error: ImportError: cannot import name 'test' from 'print' (c:\Users\me\OneDrive\Creative Cloud Files\Dokument\Projects\project1\print.py)
Why am I getting an error here? If I write import & they are in the same map, shouldn't I be able to use the functions in a different file?