Skip to content

Commit a30fb50

Browse files
committed
updates to accommodate euler solution guideline updates
1 parent 3cb1fa5 commit a30fb50

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

DIRECTORY.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,8 @@
694694
* [Sol1](https://github.com/TheAlgorithms/Python/blob/master/project_euler/problem_076/sol1.py)
695695
* Problem 080
696696
* [Sol1](https://github.com/TheAlgorithms/Python/blob/master/project_euler/problem_080/sol1.py)
697+
* Problem 089
698+
* [Sol1](https://github.com/TheAlgorithms/Python/blob/master/project_euler/problem_089/sol1.py)
697699
* Problem 091
698700
* [Sol1](https://github.com/TheAlgorithms/Python/blob/master/project_euler/problem_091/sol1.py)
699701
* Problem 097

project_euler/problem_89/sol1.py renamed to project_euler/problem_089/sol1.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""
2-
Project Euler Problem 89
3-
https://projecteuler.net/problem=89
2+
Project Euler Problem 89: https://projecteuler.net/problem=89
43
54
For a number written in Roman numerals to be considered valid there are basic rules
65
which must be followed. Even though the rules allow some numbers to be expressed in
@@ -120,7 +119,6 @@ def solution(roman_numerals_filename: str = "/p089_roman.txt") -> int:
120119
"""
121120
Calculates and returns the answer to project euler problem 89.
122121
123-
Answer:
124122
>>> solution("/numeralcleanup_test.txt")
125123
16
126124
"""
@@ -140,4 +138,4 @@ def solution(roman_numerals_filename: str = "/p089_roman.txt") -> int:
140138

141139
if __name__ == "__main__":
142140

143-
print(solution())
141+
print(f"{solution() = }")

0 commit comments

Comments
 (0)