Midterm 1 Flashcards
(19 cards)
executes the body for each value of a sequence, hash, terable
for loop
returns its value one at a time
iterable
jumps out of the current loop beyond the else
break
jumps to top of the loop
continue
does no operation
pass
a sequence of arbitrary items
list
an ordered set of items
sequence
a value can not be changed in place
immutable
build a list by running a for loop through a sequence
list comprehension
a sequence of items that are immutable
tuple
returned when nothing appears to be returned
None
a mapping (key and value)
dictionary
a value can be changed in place
mutable
leads the computer through necessary steps as the program runs
interpreter
integrated development environment
IDE
ties together utilities, library components, and operating system commands into complete programs
scripting language
computer that doesn’t exist, but has a defined language
virtual machine
function to create an iterable
range()
function that decides what type an input should be
eval()