Skip to content

Commit 008acf0

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 005bd0b commit 008acf0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

strings/reverse_letters.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ def reverse_letters(sentence: str, length: int = 0) -> str:
1313
'racecar'
1414
"""
1515
return " ".join(
16-
word[::-1] if len(word) > length else word
17-
for word in sentence.split()
16+
word[::-1] if len(word) > length else word for word in sentence.split()
1817
)
1918

2019

0 commit comments

Comments
 (0)