Skip to content

Conversation

iezkiil
Copy link

@iezkiil iezkiil commented Dec 2, 2022

GB
Основы языка Python
Урок 3. Функции
ДЗ

GB 
Основы языка Python
Урок 3. Функции
ДЗ
return (x / y)


print(delenie(100, 5))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. delenie - неудачное имя
  2. валидация - только через try except



pers_data(f_name='Иванов', l_name='Иван', y_of_bearth='1900', city='Чикаго', pers_email="[email protected]",
phone_num='+123455655565')

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)

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)

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

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())

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')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

выполнено

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants