• Common_words fail.

 

I would like to give some feedback about ...

From: https://py.checkio.org/mission/common-words/solve/

HTTP_USER_AGENT:

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.75 Safari/537.36

I get this error : /home/site/checkio/runners/py32.py:255: DeprecationWarning: cgi.escape is deprecated, use html.escape instead, error = u'TypeError: {0} is wrong data type'.format(cgi.escape(str(type(result)))),TypeError: <class 'set'> is wrong data type

with this code:

def checkio(first, second):

set1= {word for word in first.split(',')}
set2= {word for word in second.split(',')}

return set1.intersection(set2)
  • It seems to work OK in the console..