Look
here if you use Windows.
Here a quick run you can look at,i clone Repo and run
RollDieDynamic.py
G:\div_code
λ git clone https://github.com/pdeitel/IntroToPython.git
Cloning into 'IntroToPython'...
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 1029 (delta 0), reused 1 (delta 0), pack-reused 1026
Receiving objects: 100% (1029/1029), 13.73 MiB | 3.25 MiB/s, done.
Resolving deltas: 100% (731/731), done.
Checking connectivity... done.
Checking out files: 100% (1136/1136), done.
G:\div_code
λ cd IntroToPython\
G:\div_code\IntroToPython (master)
λ ls
IntroToPythonCover.png README.md examples/
G:\div_code\IntroToPython (master)
λ cd examples\
G:\div_code\IntroToPython\examples (master)
λ cd ch01
G:\div_code\IntroToPython\examples\ch01 (master)
λ ls
RollDieDynamic.py snippets_ipynb/
G:\div_code\IntroToPython\examples\ch01 (master)
λ python RollDieDynamic.py
ModuleNotFoundError: No module named 'seaborn'
# Install seaborn
G:\div_code\IntroToPython\examples\ch01 (master)
λ pip install seaborn
Collecting seaborn
Downloading seaborn-0.10.1-py3-none-any.whl
....
Successfully installed scipy-1.5.2 seaborn-0.10.1
# Run need command line arguments
G:\div_code\IntroToPython\examples\ch01 (master)
λ python RollDieDynamic.py 5 2
You need to install some stuff,as matplotlib and seaborn.
This book also do a lot in Jupyter Notebook.
So do install
JupyterLab.
I use
cmder here,but command is same in
cmd
.
You may need
Git,to clone Repo as i do.