complex if statement in python December 31, 2023 by Tarik This should do it: elif var == 80 or var == 443 or 1024 <= var <= 65535: