Question 1
You are given the definitions below. Match them to the corresponding vocabulary or method.
Is a built-in Python function that generates lists of
numbers for us to loop over.
Is a control flow statement for a finite number of
iterations, which allows code to be executed repeatedly.
Is a string specified in the Python code that is used, like a
comment, to document a specific segment of code,
enclosed between """.
Runs a block of code repeatedly until the condition
statement returns a False.
Is a data type that is often used for making decisions.
Allows us to build decision points in our code.
This method checks if a string begins with a given
argument.
This method takes a single delimiter and separates the
string at the delimiter, returning a list data type.
This method adds another element to the list.
This method removes a given argument only at the end of
your string.
[Choose]
startswith()
sort()
range
docstring
endswith()
readline()
Conditional Statement
while-loop
rstrip()
for-loop
split()
boolean
append()
[Choose]
[Choose]
[Choose]
[Choose]
[Choose]
[Choose]
20 pts