Христо обнови решението на 08.03.2014 18:59 (преди над 10 години)
+def wow_such_much (start, end):
+ listM = []
+ for i in range(start, end):
+ if i % 15 == 0:
+ listM.append("suchmuch")
+ elif i % 3 == 0:
+ listM.append("such")
+ elif i % 5 == 0:
+ listM.append("much")
+ else:
+ listM.append(str(i))
+ return listM
+
+def count_doge_words(dogString):
+ dogList = dogString.split()
+ dogCount = 0
+ dogWords = ["wow", "lol", "so", "such", "much", "very"]
+ for word in dogList :
+ if word in dogWords :
+ dogCount += 1
+ return dogCount
Добре е, но прочети как се именоват променливите в Python