I am trying to use colab to import a python file and use the files function. For example, my first file has the function:
def test():
return 'foo'
and when I try to call it in my other file like this:
import test_adt as t
t.test()
I get the error AttributeError: module 'test_adt' has no attribute 'test'
Is there something I'm missing here or is colab currently not capable of doing this?
Edit: it's in the correct directory, when you print(t) it returns:
<module 'test_adt' from '/content/test_adt.py'>