In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text are shown as follows: "Create a new file called recipe1.py
to store all of this recipe's code."
A block of code is set as follows:
def test_parsing_millenia(self): value = RomanNumeralConverter("M") self.assertEquals(1000, value.convert_to_decimal())
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
if __name__ == "__main__":
unittest.main()
New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "The unittest module provides a convenient way to find all the test methods in a TestClass".
3.145.178.151