We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89738ce commit c2e991aCopy full SHA for c2e991a
exercises/practice/yacht/.approaches/introduction.md
@@ -12,7 +12,6 @@ Adhering to the principles of DRY is important - don't repeat yourself if you ca
12
Each bit of functionality for each category can be encoded in a function, and the constant name set to that function.
13
This can be done by assigning the constant name to a `lambda` or creating a one-line function using the constant as a function name.
14
```python
15
-```python
16
def digits(num):
17
return lambda dice: dice.count(num) * num
18
YACHT = lambda dice: 50 if dice.count(dice[0]) == len(dice) else 0
0 commit comments