Prime - Factorization (Num) :: '''Prime - Factorization (Num) STR Returns A String With The Prime Factorization of Num'''
Prime - Factorization (Num) :: '''Prime - Factorization (Num) STR Returns A String With The Prime Factorization of Num'''
We can specify the values that it loops over using the range
function, or we can loop over a string, a list, a tuple, or a
dict. (When we loop over a dict, note that we loop over the
keys of the dict.) Notice that range(a,b) starts at a and stops
just before, but does not include, b. range(10) is the same as
range(0,10), and loops through 0,1,2,3,...,9.
Other list methods that are important are sort() to sort the
list, and count(element) to count the number of occurrences
of element in the list.
We can break out of either type of loop early using the break
keyword, or we can go immediately to the next iteration of
the loop using the continue keyword.