Skip to content

Commit 84ac4c2

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 950a5c3 commit 84ac4c2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

strings/anagrams.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ def signature(word: str) -> str:
1717
'a1e1f1i1l1n1s1t2'
1818
"""
1919
frequencies = collections.Counter(word)
20-
return "".join(f"{char}{frequency}" for char, frequency in sorted(frequencies.items()))
20+
return "".join(
21+
f"{char}{frequency}" for char, frequency in sorted(frequencies.items())
22+
)
2123

2224

2325
def anagram(my_word: str) -> list[str]:

0 commit comments

Comments
 (0)