Читать книгу The Self-Taught Computer Scientist - Cory Althoff - Страница 13
Getting Started
ОглавлениеThe code examples in this book are in Python. I chose Python because it is one of the easiest programming languages to read. Throughout the book, I formatted the code examples like this:
for i in range(100): print("Hello, World!") >> Hello, World! >> Hello, World! >> Hello, World!
The text # http://tinyurl.com/h4qntgk
contains a URL that takes you to a web page that contains the code from it, so you can easily copy and paste it into Python's IDLE text editor if you are having problems getting the code to run. The text that comes after >>
is the output of Python's interactive shell. Ellipses after an output ( …
) mean “and so on.” If there is no >>
after an example, it means either the program doesn't produce any output or I am explaining a concept, and the output is not important. Anything in a paragraph in monospaced font
is some form of code or code output or programming jargon.