-
Notifications
You must be signed in to change notification settings - Fork 73
Add files via upload #122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Add files via upload #122
Conversation
GB Основы языка Python Урок 3. Функции ДЗ
return (x / y) | ||
|
||
|
||
print(delenie(100, 5)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- delenie - неудачное имя
- валидация - только через try except
|
||
|
||
pers_data(f_name='Иванов', l_name='Иван', y_of_bearth='1900', city='Чикаго', pers_email="[email protected]", | ||
phone_num='+123455655565') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
выполнено
num_c = 0 | ||
print(f'третье число {num_c}') | ||
print(num_a + num_b + num_c) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
выполнено
print(result) | ||
|
||
|
||
my_func_2(10, -5) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
global stop_symb
это антипаттерн
|
||
|
||
def string_to_sum(new_array): | ||
new_array = list(new_array.split()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new_array = list(new_array.split())
зачем из списка делать список?
print(argum.title()) | ||
|
||
|
||
str_lower2('try point well') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
выполнено
GB
Основы языка Python
Урок 3. Функции
ДЗ