Python Files
How to import folders and sub folders:
# If file required is in a subfolder
from <main_folder>.<sub_folder> import function_name
# Or
# If file required is in a folder
from <package_name> import function_nameTo call the function:
def main_func():
file_name.function_name()If you want to access the code directly:
from <main_package>.<sub_package> import <module_name>
<module_name>.<function_name>()To import all the stuff:
from <main_package> import *Last updated