Skip to content

Commit 7a82272

Browse files
committed
rename evaluator.py and other updates
2 parents 031d0e6 + cc4918c commit 7a82272

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

maths/special_numbers/disarium_number.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ def is_disarium(num: int) -> bool:
3030
position += 1
3131

3232
return total == num
33+
34+
3335
if __name__ == "__main__":
3436
import doctest
37+
3538
doctest.testmod()
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
>>> evaluate("10 & 6")
2222
2
2323
>>> evaluate("(10 | 6) ^ 5")
24-
9
24+
11
2525
>>> evaluate("10 / 4")
2626
2.5
2727
"""
@@ -46,7 +46,7 @@ def evaluate(expr: str):
4646
>>> evaluate("10 / 4")
4747
2.5
4848
>>> evaluate("(10 | 6) ^ 5")
49-
9
49+
11
5050
"""
5151

5252
# --- Tokenization ---

0 commit comments

Comments
 (0)