I've started learning Python recently and I don't understand why Python behaves like this:
>>> "OK"
'OK'
>>> """OK"""
'OK'
>>> "not Ok'
File "<stdin>", line 1
"not Ok'
^
SyntaxError: EOL while scanning string literal
>>> "not OK"""
'not OK'
Why doesn't it give an error for the last statement as the number of quotes does not match?