Here you can find additional information on ...
first_demo.py,
with the following content:
print('hello, world!')
WIN+cmd), go to the
folder with first_demo.py, and check with
dir first*.py if you are in the correct
folder. where
python. (This should show you where your Python
executable is located.) Then start Python by typing
python. Stop the Python interpreter by
entering exit().
If Python is NOT running properly, please to back to Installation and configure your computer properly.
python first_demo.py jupyter
qtconsole) or JupyterLab (with jupyter
lab). Enter pwd ("print working
directory") to check if you are in the correct directory. If
this is the case type ls *.py to show all the
available Python programs in the current directory. If you are
not in the correct directory, use cd <...> to go
to the directory where you have first_demo.py%run first_demo.py.(The next few steps will be described for Wing. Try to find the corresponding commands for your IDE.)
Python
Shell.first_demo.py, and start it
by pushing Play. Ensure that you can see the
resulting text.
import numpy as np
import matplotlib.pyplot as plt
t = np.arange(0, 20, 0.1)
x = np.sin(t)
plt.plot(t, x)
plt.show()
# at the beginning of the
comment, and multiline comments start and
end with """