Browse Source

Create Well of Ideas.py

PythonCoder8 3 years ago
parent
commit
c5f6259531
1 changed files with 11 additions and 0 deletions
  1. 11 0
      8 kyu/Well of Ideas - Easy Version/Well of Ideas.py

+ 11 - 0
8 kyu/Well of Ideas - Easy Version/Well of Ideas.py

@@ -0,0 +1,11 @@
+def well(x):
+    goodKataCount = 0
+    for i in x:
+        if i == 'good':
+            goodKataCount += 1
+    if goodKataCount == 0:
+        return 'Fail!'
+    if goodKataCount in [1, 2]:
+        return 'Publish!'
+    if goodKataCount > 2:
+        return 'I smell a series!'