Skip to content

Commit eadd777

Browse files
committed
updates to accommodate euler solution guideline updates
1 parent ad97a9a commit eadd777

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

DIRECTORY.md

+2
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,8 @@
698698
* [Sol1](https://github.com/TheAlgorithms/Python/blob/master/project_euler/problem_080/sol1.py)
699699
* Problem 081
700700
* [Sol1](https://github.com/TheAlgorithms/Python/blob/master/project_euler/problem_081/sol1.py)
701+
* Problem 089
702+
* [Sol1](https://github.com/TheAlgorithms/Python/blob/master/project_euler/problem_089/sol1.py)
701703
* Problem 091
702704
* [Sol1](https://github.com/TheAlgorithms/Python/blob/master/project_euler/problem_091/sol1.py)
703705
* Problem 097

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

+2-4
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)