Skip to content

Commit c85c2cf

Browse files
committed
strategy.py
1 parent c9275b2 commit c85c2cf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

exercises/strategy/strategy.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# Strategy pattern -- function-based implementation
33

44
"""
5+
This is a simple implementation of the classic Strategy
6+
57
>>> joe = Customer('John Doe', 0) # <1>
68
>>> ann = Customer('Ann Smith', 1100)
79
>>> cart = [LineItem('banana', 4, .5),

0 commit comments

Comments
 (0)