Skip to content

Commit 528a665

Browse files
committed
from hexlet
1 parent 8bbb155 commit 528a665

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

  • modules/40-define-functions/600-type-annotations/ru

modules/40-define-functions/600-type-annotations/ru/EXERCISE.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66
```python
77
text = 'python'
88
print(word_multiply(text, 2)) # => pythonpython
9-
print(word_multiply(text, 0)) # =>
9+
print(word_multiply(text, 0)) # =>
1010
```
1111

1212
Укажите аннотации типов при объявлении функции.
13+
14+
## Подсказка
15+
16+
* Для замены символов в строке воспользуйтесь методом [replace()](https://ru.hexlet.io/qna/python/questions/kak-rabotaet-metod-replace-python)
17+
* Не забудьте, что аннотацию типов также нужно указать и у возвращаемого значения

0 commit comments

Comments
 (0)