Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
On Windows, a student types python --version and sees the message that python is not recognized. The student has just installed Python. Give three things to try.
The message does not mean that Python is broken. It means that the terminal cannot find it.
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, compare your working with the solution.
The terminal cannot find the program. The usual reasons and fixes are these.
py --version. The Python launcher is installed with Python, and it often works when python does not.Answer: try py --version, open a new terminal, and check the PATH box in the installer.
Log in to join the discussion.
Loading…