Continued line assignment - Python

I hope that I do not break any SO rules with this: what is the preferred style for assigning values ​​to variables when the variables are nested at several levels in depth, they have rather long names and quite long values ​​/ expressions are assigned to them.

For instance:

if this:
    if that:
        if here:
            if there:
                 big_variable['big_key']['big_value'] = another_big_variable_that_pushes_line_over_79_characters
                 other_thing = something

Personal restriction violations apply only to individual digits, but I want to clear my code so that it matches PEP 8 as accurately as possible. I did the following, but I'm still pretty new to python, and I'm not sure if this is what will make an experienced python programmer cringe:

if this:
    if that:
        if here:
            if there:
                big_variable['big_key']['big_value'] = \
                    another_big_variable_that_pushes_line_over_79_characters
                other_thing = something

, ; , , , , . !

+4
2

- , . , - , .

\ .

- . : " - ". , ;-). var1, var2, var3 .. - , .

ChiefExecutiveOfficerOfCompanysName CEOName?

if, . , if...else-if, - ( ). , :

if this:
    if that:
        if here:
            if there:

:

if this and that and here and there:

​​ , :

if EvaluateConditions(<args>):

- ( , ... )

- design

+6

, Python. :

big_variable['big_key']['big_value'] =(
    another_big_variable_that_pushes_line_over_79_characters
)

.

+4

Source: https://habr.com/ru/post/1533625/


All Articles