Newlines are mostly not significant, and can be put wherever you can put whitespace. For example:
>>>> const
.... x
.... =
.... 3
means the same thing as:
>>>> const x = 3
However, if a newline can be understood as the end of an expression or statement, it will be. For example:
>>>> const
.... x
.... =
.... 1
>>>> +
.... 3
3: int
Means the same as:
>>>> const x = 1
>>>> + 3
3: int