0
/ 6.0
Write a function in Python that implements the following logic: The squirrels in Palo Alto spend most of the day playing. In particular,...
Write a function in Python that implements the following logic: The squirrels in Palo Alto spend most of the day playing. In particular, they play if the temperature is between 60 and 90 (inclusive), unless it is summer, in which case the upper limit is 100 instead of 90. Given an integer temperature and a boolean isSummer, return True if the squirrels play and False otherwise.
Examples:
squirrelPlay(20,False) -> False
squirrelPlay(95,True) -> True
Your feedback will appear here when you check your answer.