1/14
Vocabulary flashcards covering core Python functions, comment syntax, conditional statements, and iterative statements from Module 1 of the Google Cybersecurity Certificate.
Comment
A note programmers make about the intention behind their code.
#
Starts a line that contains a Python comment.
print()
Outputs a specified object to the screen.
type()
Returns the data type of its input.
range()
Generates a sequence of numbers.
if
Starts a conditional statement.
elif
Precedes a condition that is only evaluated when previous conditions evaluate to False; previous conditions include the condition in the if statement, and when applicable, conditions in other elif statements.
else
Precedes a code section that only evaluates when all conditions that precede it within the conditional statement evaluate to False; this includes the condition in the if statement, and when applicable, conditions in elif statements.
and
Requires both conditions on either side of the operator to evaluate to True.
or
Requires only one of the conditions on either side of the operator to evaluate to True.
not
Negates a given condition so that it evaluates to False if the condition is True and to True if it is False.
for
Signals the beginning of a for loop; used to iterate through a specified sequence.
while
Signals the beginning of a while loop; used to iterate based on a condition.
break
Used to break out of a loop.
continue
Used to skip a loop iteration and continue with the next one.