Before you start reading this book, you should know the basics of Python programming, such as the basic syntax, variable type, data type tuple, list dictionary, functions, strings, and methods. Two versions, 3.6.5 and 2.7.14, are available at python.org/downloads/.
Examples and source code for this chapter are available in the GitHub repository in the chapter 1 folder: https://github.com/PacktPublishing/Mastering-Python-for-Networking-and-Security.