I understand the concept of backslashes and their use in escape sequences, but
Why do these produce the same results?
import re
print 'Test 1'
for i in re.findall("\n", "This\nis\na\ntest."):
print 'Newline'
print 'Test 2'
for i in re.findall(r"\n", "This\nis\na\ntest."):
print 'Newline'
Try the code here in an online Python compiler.