Емилиян обнови решението на 12.03.2014 12:48 (преди над 10 години)
+
+
+def wow_such_much(start, end):
+ ''' '''
+ words_sequence = []
+ for number in range(start, end):
+ such_much = ''
+ if not number % 3:
+ such_much += 'such'
+ if not number % 5:
+ such_much += 'much'
+ if not such_much:
+ such_much = str(number)
+ words_sequence.append(such_much)
+ return words_sequence
+
+
+def count_doge_words(sentence):
+ '''Returns the number of doge words in a given sentence'''
+ doge_words = {'wow', 'lol', 'so', 'such', 'much', 'very'}
+ return len([word for word in sentence.split() if word in doge_words])
- хубаво е, че си открил докстринговете, но не слагай празни такива
Другото е супер.