'red':2,'green':1})>>>#FindthetenmostcommonwordsinHamlet>>>importre>>>words=re.findall(r'\w+',open('hamlet.txt