Conversation
GB Основы языка Python Урок 3. Функции ДЗ
| return (x / y) | ||
|
|
||
|
|
||
| print(delenie(100, 5)) |
There was a problem hiding this comment.
- delenie - неудачное имя
- валидация - только через try except
|
|
||
|
|
||
| pers_data(f_name='Иванов', l_name='Иван', y_of_bearth='1900', city='Чикаго', pers_email="i.ivanov@domain.local", | ||
| phone_num='+123455655565') |
| num_c = 0 | ||
| print(f'третье число {num_c}') | ||
| print(num_a + num_b + num_c) | ||
|
|
| print(result) | ||
|
|
||
|
|
||
| my_func_2(10, -5) |
There was a problem hiding this comment.
(result) - для чего скобки?
osnov - нарушение пеп-8
| break | ||
| else: | ||
| sum_array = sum_array + int(new_array[i]) | ||
| return stop_symb, sum_array |
There was a problem hiding this comment.
global stop_symb
это антипаттерн
|
|
||
|
|
||
| def string_to_sum(new_array): | ||
| new_array = list(new_array.split()) |
There was a problem hiding this comment.
new_array = list(new_array.split())
зачем из списка делать список?
| print(argum.title()) | ||
|
|
||
|
|
||
| str_lower2('try point well') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GB
Основы языка Python
Урок 3. Функции
ДЗ