you should use ``&&`` instead of ``and`` for boolean comparisons. ``and`` is a control flow operator