“Create a constant called myAge and set it to your age. Then, create a constant named isTeenager that uses Boolean logic to determine if the age denotes someone in the age range of 13 to 19.”
my logic:
let myAge = 32
let isTeenager = 13…<19
When I try to compare myAge to isTeenager I get this error message: Binary operator ‘==’ cannot be applied to operands of type ‘Int’ and ‘Range’
my question:
how do you denote someones age in a specified range without using the … syntax? Any help is greatly appreciated. Thanks!