There is supposed to be a comma between these two strings
foo = ['dumb'
'error']
But if you forget the comma, it just merges the strings together instead of producing a syntax error. Your result will be
['dumberror']
I spent hours tracking this down. Why is the Python interpreter merging these strings?
It’s a documented feature to allow for nicer formatting in source code with string literals.
Source
It is also worth remembering this note: