shorten this by doing: elif words[2] in ('min', 'high', 'scanned') etc.