• def checkio(line):

Question related to mission _X Word count

 

def checkio(line): num = len(line.split(' '))
(a,b) = ('are','words') if num > 1 else ('is', 'word')
return 'There %s %s %s in the line'%(a,num,b)