#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Dec 15 15:40:51 2018

@author: harriet
"""


#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, then the upper limit is 100 instead of 90. Given an int temperature and a boolean is_summer, return True if the squirrels play and False otherwise.
#
#
#squirrel_play(70, False) → True
#squirrel_play(95, False) → False
#squirrel_play(95, True) → True


def squirrel_play(temp, is_summer):
  if is_summer and temp_good_summer(temp):
    return True
  elif not is_summer and temp_good(temp):
    return True
  else:
      return False
  
def temp_good(temp):
  return temp >= 60 and temp <= 90
  
def temp_good_summer(temp):
  return temp >= 60 and temp <= 100
  
  