'unable to run pydoc from the command line - "command not found: pydoc"

I'm reading the "Learn Python the Hard Way" and the now the author is saying to run, in the terminal, pydoc input. I do this and get the response:
miguel@MBP-de-Miguel ~ % pydoc ex12.py
zsh: command not found: pydoc
I've tried other different things, but I'm not finding a solution. I've searched first for help, but it looks like I'm the only mac user having troubles!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source