My doubt is regarding "Python for Developers Course " - Modules in Python.
In the video “Python Modules 3”, we created a package math and an init.py file in it.
In the video it says we can access what’s written in init.py file by “import math” in our current python file. But I am not able to do it. It’s showing error, like this:
print(math.a)
AttributeError: module ‘math’ has no attribute ‘a’
How to fix this?