remove unused variable
This commit is contained in:
@@ -31,8 +31,9 @@ def calculate_scores(winning_numbers: list) -> list:
|
||||
- 1 point for 1 match
|
||||
- double the points for each successive match
|
||||
"""
|
||||
|
||||
scores = []
|
||||
for i, win in enumerate(winning_numbers):
|
||||
for win in winning_numbers:
|
||||
if len(win) == 0:
|
||||
scores.append(0)
|
||||
if len(win) == 1:
|
||||
@@ -50,6 +51,7 @@ def new_rules(input_data: list) -> list:
|
||||
- repeat until there are no more matches
|
||||
- return the total number of cards you've accumulated
|
||||
"""
|
||||
|
||||
data = input_data.split("\n")
|
||||
|
||||
cards = [1 for i in range(len(data))]
|
||||
@@ -64,6 +66,7 @@ def new_rules(input_data: list) -> list:
|
||||
for j in range(win):
|
||||
cards[i + j + 1] += cards[i]
|
||||
win = 0
|
||||
|
||||
return cards
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user