python can use semicolon to break commands instead of newlines.
and renpy is actually just python with some extensions to make it easier to create Visual Novel type stuff in.
```
X="hello world";print(X)
```
works the same way as
```
X="hello world"
print(X)
```
and inside of strings you can use an escape sequence (just put a \ at the end of the line) to have the interpreter ignore the newline character.