EasyOutput prediction
Raw string vs regular string in a pattern
What does this code print?
import re
text = "line1\nline2"
count_raw = len(re.findall(r"\n", text))
count_normal = len(re.findall("\n", text))
print(count_raw, count_normal)← → arrow keys to navigate
Sign in to save your progress.