Lesson 2 - Executing Python - Prgrams, Algorithms, and Functions Flashcards
(11 cards)
Pseudocode
A way of writing down the steps a computer program will make without coding in any specific language
Function
A reusable piece of code that is only run when it is called.
Variable
A mapping between a name and an object at a certain location in the computer’s memory.
Map
A special function in Python that applies a given function to all items in a list.
Filter
A function that takes a function and iterables as inputs and returns the elements for which the function returns TRUE.
Sorted
A function that takes iterables, such as a list, and sorts them according to a function.
Script
A file designed to be executed, usually from the command line.
Docstring
A string appearing as the first statement in a script, function, or class.
Help
A function used to obtain a summary of any available information regarding a module, function, or class in Python
Algorithm
A series of instructions that can be executed to perform a certain task or computation.
Binary Search
A sorting algorithm that takes a sorted array and finds the position of the target value.