We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 031d0e6 + cc4918c commit 7a82272Copy full SHA for 7a82272
maths/special_numbers/disarium_number.py
@@ -30,6 +30,9 @@ def is_disarium(num: int) -> bool:
30
position += 1
31
32
return total == num
33
+
34
35
if __name__ == "__main__":
36
import doctest
37
38
doctest.testmod()
scripts/command_line_calculator.py scripts/evaluator.pyscripts/command_line_calculator.py renamed to scripts/evaluator.py
@@ -21,7 +21,7 @@
21
>>> evaluate("10 & 6")
22
2
23
>>> evaluate("(10 | 6) ^ 5")
24
- 9
+ 11
25
>>> evaluate("10 / 4")
26
2.5
27
"""
@@ -46,7 +46,7 @@ def evaluate(expr: str):
46
47
48
49
50
51
52
# --- Tokenization ---
0 commit comments