Skip to content
This repository was archived by the owner on Sep 22, 2022. It is now read-only.
This repository was archived by the owner on Sep 22, 2022. It is now read-only.

unnecessary utility #15

@GreatBahram

Description

@GreatBahram

It seems you don't need utils at all.
You can use some kind of comprehension to make the code even much more readable and independent.

return ''.join(
    dic.get(char, char) # maybe dic is not a good name though
    for char in string
)

return utils.replace(string, dic)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions