Skip to content

Commit

Permalink
Merge pull request #2 from scottwedge/master
Browse files Browse the repository at this point in the history
Fixes #1
  • Loading branch information
prasadhonrao authored Sep 21, 2020
2 parents 85dc7f5 + a5fe85b commit 3aafe11
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
immport re
import re

for _ in range(int(input())):
print(re.sub(r'(?<= )(\&\&|\|\|)(?= )', (lambda m: 'and' if m.group(1) == '&&' else 'or'), input()))
print(re.sub(r'(?<= )(\&\&|\|\|)(?= )', (lambda m: 'and' if m.group(1) == '&&' else 'or'), input()))

0 comments on commit 3aafe11

Please sign in to comment.