I'm new to programming. Self teaching so I wanted to ask the internet for help.
I wanted to see if an Int I stored in a constant, matches a single digit in a CountableClosedRange, and if so, spit out the boolean value true. See below:
let physics = 76
let math = 79
let history = 94
let language = 98
let aPlus = [95...100]
let didPhysicsGetA = physics == aPlus
76 is obviously not in that range, so in this case I'd want didPhysicsGetA to comeback as false.
How can I do so, and are there better ways?