What it's doing currently is looking to see if the statement is 0. course_select == "ACC 225" returns a boolean, but when you get to "acc 225", it is a string, whose first value is the ASCII letter 'a' which is NOT 0. Therefore, that evaluates to true or (rather) non-0.