Exploring Module Content With Dir()

Mon 10 August 2026
import math

print(dir(math))
['__doc__', '__loader__', '__name__', '__package__', '__spec__', 'acos', 'acosh', 'asin', 'asinh', 'atan', 'atan2', 'atanh', 'cbrt', 'ceil', 'comb', 'copysign', 'cos', 'cosh', 'degrees', 'dist', 'e', 'erf', 'erfc', 'exp', 'exp2', 'expm1', 'fabs', 'factorial', 'floor', 'fma', 'fmod', 'frexp', 'fsum', 'gamma', 'gcd', 'hypot', 'inf', 'isclose', 'isfinite', 'isinf', 'isnan', 'isqrt', 'lcm', 'ldexp', 'lgamma …

Category: chapter10_modules_and_packages

Read More

Module Search Path (Sys.Path)

Mon 10 August 2026
import sys

print(sys.path)
['C:\\Users\\Ashwin\\AppData\\Local\\Programs\\Python\\Python313\\python313.zip', 'C:\\Users\\Ashwin\\AppData\\Local\\Programs\\Python\\Python313\\DLLs', 'C:\\Users\\Ashwin\\AppData\\Local\\Programs\\Python\\Python313\\Lib', 'C:\\Users\\Ashwin\\AppData\\Local\\Programs\\Python\\Python313', '', 'C:\\Users\\Ashwin\\AppData\\Local\\Programs\\Python\\Python313\\Lib …

Category: chapter10_modules_and_packages

Read More
Page 1 of 2

Next »