Skip to content

いい感じのところで改行 #49

@higurashi-takuto

Description

@higurashi-takuto

Code Author: @Sota222
Knock Number: 06
他の書き方で省略できるならば、いいけど、どうしても長くなる文を書くときは、いい感じのところで改行することが多いです。

sentences = list(map(lambda x: [x[i:i+2] for i in range(len(x)-2+1)],
                     sentences))

100knock/Sota222/06.py

Lines 12 to 13 in aaf0f01

# これでもいけるがpep8さんに長過ぎと怒られる
# sentences = list(map(lambda x: [x[i: i + 2] for i in range(len(x) - 2 + 1)], sentences))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions