Димитър обнови решението на 06.03.2014 14:50 (преди почти 11 години)
+import re
+def wow_such_much (start,end):
+ meme = []
+ for i in range(start, end):
+ if i%3==0:
+ if i%5==0:
+ meme.append('suchmuch')
+ else:
+ meme.append('such')
+ elif i%5==0:
+ meme.append('much')
+ else:
+ meme.append(str(i))
+ return meme
+
+
+def count_doge_words(sentence):
+ doge_words=["wow","lol","so","such","much","very"]
+ word_list=re.findall(r'\b[.\w+]+\b',sentence.lower())
+ counter=0
+ for doge in doge_words:
+ counter=counter + (word_list.count(doge))
+ return counter