Skip to content

Add files via upload#122

Open
iezkiil wants to merge 1 commit intoKartavec:masterfrom
iezkiil:lesson_3
Open

Add files via upload#122
iezkiil wants to merge 1 commit intoKartavec:masterfrom
iezkiil:lesson_3

Conversation

@iezkiil
Copy link
Copy Markdown

@iezkiil iezkiil commented Dec 2, 2022

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

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


print(delenie(100, 5))
Copy link
Copy Markdown

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="i.ivanov@domain.local",
phone_num='+123455655565')
Copy link
Copy Markdown

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)

Copy link
Copy Markdown

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)
Copy link
Copy Markdown

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
Copy link
Copy Markdown

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())
Copy link
Copy Markdown

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')
Copy link
Copy Markdown

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