Skip to content

Commit b25eb03

Browse files
author
Pavel Hrdinka
committed
:task_17_capitalize_words.py
1 parent ccf00a2 commit b25eb03

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

06/tasks/task_17_capitalize_words.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@ def capitalize_words(s: str) -> str:
44
"""
55
Vrátí řetězec, kde každé slovo začíná velkým písmenem.
66
"""
7+
8+
return s.title()
79

10+
print(capitalize_words("tento text upravime a vsechny pismena budou velke"))

0 commit comments

Comments
 (0)