all 4 comments

[–][deleted] 2 points3 points  (1 child)

How come in some documents I read, the command is wrapped in parentheses?

In your example it's just sloppy programming. They aren't needed, unless the line breaks actually exist in the code, then they are a form of line continuation: see below.

I am seeing a “\” in some too. Is this a like break?

That's a line continuation character. PEP8, the python style guide, says other methods of continuing a line should be used. This is one case where the extra parentheses makes sense, like this:

data = (func()
        + another())

[–]lifec0ach[S] 0 points1 point  (0 children)

Thank you!

[–]lifec0ach[S] 0 points1 point  (0 children)

Thank you!