Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
Which command checks the Python version on (a) Windows, (b) macOS, (c) Linux? What do you see if it worked?
On macOS and Linux the command is python3. On Windows it is py.
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.
py --version. The command python --version often works too.python3 --version.python3 --version.If it worked, the terminal shows Python 3. followed by numbers, such as the version that you installed.
Log in to join the discussion.
Loading…