HTMLify

__init__.py
Views: 13 | Author: Unknown
# mater pakage's intial file
#from .functions.lcm import lcm
#from .classes import *

__all__ = [
"is_prime",
"factorial",
"alternative_factorial",
"double_factorial",
"super_factorail",
"hyper_factorail",
"ultra_factorial",
"primorial",
"ultra_primorial",
"pow",
"sqrt",
"is_palindrome",
"average",
"cbrt",
"xroot",
"dpfactors",
"is_power_of2",
"floor",
"is_even",
"is_odd",
"is_armstrong",
"divisors",
"is_amicables",
"quadratic_roots",
"akermann",
"gcd",
"lcm",

"Square",
"Rectangle",
"Circle",
"SemiCircle",
"Matrix",
"Cube"
]


for i in __all__:
    try:
        exec("from .functions." + i + " import " + i )
    except:
        try:
            exec("from .classes." + i + " import " + i )
        except:
            pass

Comments