# review and run code - note: fix error in the following "tasks" section
have_hat = hat_available('green')
print('hat available is', have_hat)
def hat_available(color):
hat_colors = 'black, red, blue, green, white, grey, brown, pink'
# return Boolean
return(color.lower() in hat_colors)
# [ ] fix the sequence of the code to remove the NameError
def hat_available(color):
hat_colors = 'black, red, blue, green, white, grey, brown, pink'
return(color.lower() in hat_colors)
have_hat = hat_available('green')
print('hat available is', have_hat)
# [ ] create function bird_available
# [ ] user input
# [ ] call bird_available
# [ ] print availbility status
birds = input("what bird do you want?")
def bird_available():
bird_types = 'crow, robin, parrot, eagle, sandpiper, hawk, piegon'
return(birds.lower() in bird_types)
print(birds)
bird_available()
def how_many():
requested = input("enter how many you want: ")
return requested
# get the number_needed
number_needed = how_many()
print(number_needed, "will be ordered")