diff --git a/Project 1/utilities.py b/Project 1/utilities.py index b78afb9..d4e5d17 100644 --- a/Project 1/utilities.py +++ b/Project 1/utilities.py @@ -8,3 +8,9 @@ def sum_cards_iter(cards: list[Card]) -> int: return total #Added for project 2: Created a function to sum a list of Card objects using iteration. +def sum_cards_iter(cards: list[Card]) -> int: + total = 0 + for card in cards: + total = total + card + return total +#Added for project 2: Created a function to sum a list of Card objects using iteration. \ No newline at end of file