3 ms·
I like the walrus operator for working with the regex module. if match := re.search(r"Score = (\d+)", data): print(match[1]) else: prin
by xigoi 5y ago
I like the walrus operator for working with the regex module.
if match := re.search(r"Score = (\d+)", data):
print(match[1])
else:
print("Not found")