Keywords Flashcards
print to console
print to console
while
while loop
sub routine
returns data types from a list until a specified condition/value is met
controlling the flow of the program with a loop sub routine that will continue forever or till a specified value is met.
preferable to use for loop if poss
while loop
sub routine
returns data types from a list until a specified condition/value is met
controlling the flow of the program with a loop sub routine that will continue forever or till a specified value is met.
preferable to use for loop if poss
while
for
for loop
retuns data types from a list in order
iterate over items of a collection in order that they appear
break
interrupt the (loop) cycle, if needed
yield
is used with generators
exec
executes Python code dynamically
class
used to create new user defined objects
assert
used for debugging purposes
pass
does nothing
del
deletes objects
raise
create a user defined exception
finally
is always executed in the end. Used to clean up resources.
except
catches the exception and executes codes