Well, declaring as a string forces any input to be formatted as a string, from what I can tell, so I just put an int as the test to make sure that the code runs for all possible inputs, including potential miscommunication with the script for "None" or "Null" jokes.
Good contribution! However, you declared the parameter food_source as a string and later pass an interger as a value in the tests. Perhaps you should declare food_source as Any if you want it to be "any" type of datatype?
ok and?
HERE NOW
(built from seraph's original change to any type)
Well, declaring as a string forces any input to be formatted as a string, from what I can tell, so I just put an int as the test to make sure that the code runs for all possible inputs, including potential miscommunication with the script for "None" or "Null" jokes.
Good contribution! However, you declared the parameter
food_source
as astring
and later pass aninterger
as a value in the tests. Perhaps you should declarefood_source
asAny
if you want it to be "any" type of datatype?I just made the arguments forced strings, so you can put whatever you want in whatever slot.