Атанас обнови решението на 06.03.2014 14:58 (преди над 10 години)
+def wow_such_much(start,end):
+
+ ret_list_str=[]
+ for x in range(start,end):
+ val = str(x);
+ if x is not 0:
+ if x%3 == 0 and x%5 == 0:
+ val= 'suchmuch'
+ elif x%5 == 0:
+ val = 'much'
+ elif x%3 == 0:
+ val = 'such'
+ ret_list_str.append(val)
+
+
+ return ret_list_str
+
+
+def count_doge_words(instr):
+ doge_words = ['wow', 'lol', 'so', 'such', 'much', 'very']
+ count_dodge_words = 0
+ for doge_word in doge_words:
+ if doge_word in instr:
+ count_dodge_words +=1
+ return count_dodge_words