it is possible to make imports from own modules define function in file mymodule py mymodule py def incx( )return + the function can now be imported in other py filestest py test py import mymodule from mymodule import incx mymodule incx( incx(