Automate Cybersecurity Tasks with Python - Module 2 Flashcards
(15 cards)
Argument (Python)
The data sent into a function when it’s called
Built-in Function
A function that comes with Python and can be used directly
Comment
A note in code to explain what it’s doing
Function
Code you can reuse
Global Variable
A variable you can use anywhere in your code
Indentation
Spaces at the start of a line to show code structure
Library
A group of modules with useful code
Local Variable
A variable used only inside a function
Module
A Python file with code like functions and variables
Parameter (Python)
A variable in a function that holds input data
PEP 8 Style Guide
Rules for writing clear Python code
Python Standard Library
A bunch of helpful Python modules you can use
Return Statement
Sends a result back from a function
Style Guide
Rules for how to format and write code
User-Defined Function
A function made by a programmer for a specific task