Skip to content

Commit 58bd201

Browse files
committed
Defined "random_animal" with random animal from list.
1 parent f6bc58d commit 58bd201

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

patterns/creational/abstract_factory.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ def main() -> None:
9090

9191

9292
if __name__ == "__main__":
93+
animals = ['dog', 'cat']
94+
random_animal = random.choice(animals)
95+
9396
shop = PetShop(random_animal)
9497
import doctest
9598

0 commit comments

Comments
 (0)