You are viewing a single comment's thread. Return to all comments →
without regex:
s = int(input()) for _ in range(s): i = input() while " && " in i: i = i.replace(" && ", " and ") while " || " in i: i = i.replace(" || ", " or ") print(i)
Seems like cookies are disabled on this browser, please enable them to open this website
Regex Substitution
You are viewing a single comment's thread. Return to all comments →
without regex: