As a newbie to Python, I read a book written by Bill Lubanovich
I found something strange.
In this book, after saving simple code in test1.py, which is located
print("This standalone program works!")
he says python can run it by typing
$ python test1.py
However, when I try to use this, a syntax error occurs.
Although I know that there are other methods, such as using exec (), which I found on this website, I want to know why the book uses this method, which does not work, at least for me.
python shell
smw1991
source share