filmov
tv
what is __init__.py file in Python

Показать описание
*__init__.py file in python*
It treats directory as package and files inside it as module so that
one can import it in another folder.
Let us see the practical example See from below link
To import function_second package and its module inside another folder function_first, __init__.py file is used.
*Note Points*
2.) create an empty __init file inside the folder whose file you need to import in another folder.
*Extra information in this video*
Let us also see Request Header Message in this video. This is the recent post AI Sangam has created.
Thanks for watching
*Please do join us at*
It treats directory as package and files inside it as module so that
one can import it in another folder.
Let us see the practical example See from below link
To import function_second package and its module inside another folder function_first, __init__.py file is used.
*Note Points*
2.) create an empty __init file inside the folder whose file you need to import in another folder.
*Extra information in this video*
Let us also see Request Header Message in this video. This is the recent post AI Sangam has created.
Thanks for watching
*Please do join us at*