Raised when Python cannot find a module you are trying to import.
ModuleNotFoundError occurs when Python tries to import a module that is not installed or not available in the current environment. This typically happens when the module is missing or the import statement has a typo.
# Wrong code that causes error import reqeusts # Typo in module name
# Correct code import requests # Correct module name