import remaxcons=0for word in re.findall("[a-zA-Z]+",text): count=0 for c in word: if c.lower() not in [aeiou]: count+=1 if count>maxcons: maxcons=count resultword=wordprint(resultword)