This did not change, but the author also didn't use semicolons. As stated many times above, this is a single Python expression.
I'm not sure you can write function definitions, (nested) loops and other things that rely on indentation in single line using semicolons. At least I never managed to do that.