diff --git a/2011-final-value-of-variable-after-performing-operations/2011-final-value-of-variable-after-performing-operations.py b/2011-final-value-of-variable-after-performing-operations/2011-final-value-of-variable-after-performing-operations.py index 89d0aa1..a441b3a 100644 --- a/2011-final-value-of-variable-after-performing-operations/2011-final-value-of-variable-after-performing-operations.py +++ b/2011-final-value-of-variable-after-performing-operations/2011-final-value-of-variable-after-performing-operations.py @@ -3,7 +3,7 @@ class Solution: value = 0 for op in operations: - if "+" in [op[0], op[-1]]: + if op[1] == "+": value += 1 else: value -= 1