I'm a Java guy, and I always used to think about the import keyword as a command to importing external classes and methods (packages)...
In Python I saw that it is slightly different... here you can use import to add some code and functions from another file and even add some classes from another file...
So when you want to execute a function from a file.py you have to write:
import file
file.function()
And if you want to execute a method from a class in class.py you have to write:
import class
object = class()
object.method()
My little java mind can't understand why do they have the same syntax... does it mean that when you create an external file with some function you are unknowingly creating an object?
Or the python team has just used the same keyword and syntax for two different scopes?
Sorry if I wrote some incorrect concepts, I just tried to explain it easily