The Problem!
So, when we install Python 3, we usually do skip and next without selecting any options. When we install Python, we get the “Add To Path” option; if we ignore this option, we get this error in Python.
The scenario differs depending on the type of operating system.
The resulting error for Windows looks like this: