I recommend you to download and use Jupyter Lab on your Windows PC. Jupyter Lab is a user-friendly and fun way to use Python (as compared to directly using PowerShell). After you have downloaded Jupyter Lab, running it is easy:
- In File Explorer, go to your folder of interest (your Python playground!)
- In the address bar of this folder, delete the default address, and type
powershell, and press enter - In the PowerShell window which opens up, type in
jupyter-laborpython -m jupyterlab, and press enter - If Jupyter Lab has been installed on your PC, then one or more URLs will be provided to you
- Copy and paste one of these URLs into Chrome's address bar, and press enter. Jupyter Lab will run now!
Search around on jupyter.org or Google or YouTube if you want to learn more about how to use this nice software, or if you are having trouble setting it up.
In PowerShell, if you type in python -i filename.py, then you will enter the interactive mode of Python. This mode is good for playing around.
- You can exit interactive mode by typing
exit(). - You can use the
help()function to get insightful docstrings on various Python things.