diff --git a/comparison.py b/comparison.py index b1a6ea7..cc29bf6 100644 --- a/comparison.py +++ b/comparison.py @@ -3,6 +3,5 @@ def compare(a: str) -> bool: if(a[i].isdigit() == False): if a[i] == "<": return int(a[:i]) < int(a[i + 1:]) - else: - return int(a[:i]) > int(a[i + 1:]) - \ No newline at end of file + elif (a[i] == ">"): + return int(a[:i]) > int(a[i + 1:]) \ No newline at end of file