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

@author: harriet
"""


#Given a number n, return True if n is in the range 1..10, inclusive. Unless outside_mode is True, in which case return True if the number is less or equal to 1, or greater or equal to 10.
#
#
#in1to10(5, False) → True
#in1to10(11, False) → False
#in1to10(11, True) → True

def in1to10(n, outside_mode):
  if not outside_mode:
    return n >=1 and n <= 10
  else:
    return n <= 1 or n >= 10
  
 


