Write a function omit_letters(a_phrase, omitted_letters)
, which takes a
string as a parameter. Your function should list all of the
characters out of a_phrase, each on their own line.
However, your program should only print the letters not included in
the omitted letters string.
>>> omit_letters("INQ 241A", "241") I N Q A >>> omit_letters("Trexler", "e") T r x l r
Write a function perfect_squares(maximum_sqrt)
, which takes
an integer as a parameter. This function should print all of the
perfect squares whose square root is less than maximum_sqrt.
>>> perfect_squares(10) 0 1 4 9 16 25 36 49 64 81 >>> perfect_squares(5) 0 1 4 9 16
In a file called hair_color.py, write a function
called change_hair_to_red(picture)
. This function should
take 1 parameters: the picture you are going to modify. Your
function should use what you learned today in class to make the
changing of the hair color better.