-3
のリストの中間単語(複数可)を見つけ
目的:単語のリストの中間単語(複数可)を見つけデバッグ:言葉
試み:
words = ['Baa', 'Baa', 'black', 'sheep', 'have', 'you', 'any', 'wool']
s=words.split('')
length = len(words)
if length % 2 == 1:
print s(length/2)
else:
print s((length/2) + ((length/2) +1))
Error: Traceback (most recent call last):
File "<web session>", line 2, in <module>
AttributeError: 'list' object has no attribute 'split'