Skip to content

Commit

Permalink
Merge pull request #218 from Stegallo/sourcery/2023
Browse files Browse the repository at this point in the history
2023 (Sourcery refactored)
  • Loading branch information
Stegallo authored Dec 8, 2023
2 parents 7828005 + c236c64 commit cc2026f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions y_1900/day0.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,3 @@ def _calculate_1(self):

def _calculate_2(self):
return 0
x = self.__input_data
print(f"{x=}")
4 changes: 1 addition & 3 deletions y_2023/day1.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,5 @@ def _calculate_1(self) -> int:
return self.calculate_calibration(self.__input_data)

def _calculate_2(self) -> int:
new_input = []
for i in self.__input_data:
new_input.append(self.replace_word_with_number(i))
new_input = [self.replace_word_with_number(i) for i in self.__input_data]
return self.calculate_calibration(new_input)

0 comments on commit cc2026f

Please sign in to comment.