From 8d4cd3c68f9bf9ec693fedf996ac00bb499e22e4 Mon Sep 17 00:00:00 2001 From: Paulo Custodio Date: Mon, 13 Dec 2021 16:19:32 +0000 Subject: whitespace --- challenge-143/paulo-custodio/python/ch-1.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'challenge-143/paulo-custodio/python/ch-1.py') diff --git a/challenge-143/paulo-custodio/python/ch-1.py b/challenge-143/paulo-custodio/python/ch-1.py index a81c52fd0e..7705a4eafe 100644 --- a/challenge-143/paulo-custodio/python/ch-1.py +++ b/challenge-143/paulo-custodio/python/ch-1.py @@ -3,10 +3,10 @@ # TASK #1 > Calculator # Submitted by: Mohammad S Anwar # You are given a string, $s, containing mathematical expression. -# +# # Write a script to print the result of the mathematical expression. To keep # it simple, please only accept + - * (). -# +# # Example 1: # Input: $s = "10 + 20 - 5" # Output: 25 @@ -46,7 +46,7 @@ def factor(input): value -= b else: return input, value - + def term(input): input = input.strip()+" " match = re.match(r"[-+]?\d+", input) -- cgit