ModuleNotFoundError: __path__ attribute not found on 'guessing_game' while trying to find 'guessing_game.py'

Solution 1:

Because you're trying to run it as a module?

-m Search sys.path for the named module and execute its contents as the main module.

Since the argument is a module name, you must not give a file extension (.py). The module-name should be a valid Python module name, but the implementation may not always enforce this (e.g. it may allow you to use a name that includes a hyphen).