Стоянка обнови решението на 08.03.2014 15:39 (преди над 10 години)
+def wow_such_much(start, end):
+ i = start
+ b = []
+ while i < end:
+ if i%3 == 0 and i%5 == 0:
+ b.append('suchmuch')
+ elif i%3 == 0:
+ b.append('such')
+ elif i%5 == 0:
+ b.append('much')
+ else:
+ b.append(str(i))
+ i += 1
+ return b
+
+def count_doge_words(s):
+ myList = [ "wow", "lol", "so", "such", "much", "very" ]
+ br = 0
+ i = 0
+ a = s.lower()
+ for item in myList:
+ if myList[i] in a:
+ br += a.count(myList[i])
+ i += 1
+ return br