Skip to Content
Mastering Python for Networking and Security - Second Edition
book

Mastering Python for Networking and Security - Second Edition

by José Manuel Ortega
January 2021
Intermediate to advanced
538 pages
10h 41m
English
Packt Publishing
Content preview from Mastering Python for Networking and Security - Second Edition

Assessments

In the following pages, we will review all of the practice questions from each of the chapters in this book and provide the correct answers.

Chapter 1 – Working with Python Scripting

  1. The Python dictionary data structure provides a hash table that can store any number of Python objects. The dictionary consists of pairs of items containing a key and a value.
  2. By adding a breakpoint. In this way, we can debug and see the content of the variables just at the point where we have established the breakpoint.
  3. BaseException
  4. The dir() method.
  5. OptionParser

Chapter 2 – System Programming Packages

  1. The system (sys) module.
  2. subprocess.call(“cls”, shell=True)
  3. We can use the context manager approach and the with statement.
  4. Processes are full programs. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Python for Networking and Security

Mastering Python for Networking and Security

José Manuel Ortega
Python for Cybersecurity

Python for Cybersecurity

Howard E. Poston, III

Publisher Resources

ISBN: 9781839217166Supplemental Content