-
Notifications
You must be signed in to change notification settings - Fork 337
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
Lesson8 #1809
base: master
Are you sure you want to change the base?
Lesson8 #1809
Conversation
print(today.valid(11, 13, 2011)) | ||
print(Data.extract('11 - 11 - 2011')) | ||
print(today.extract('11 - 11 - 2020')) | ||
print(Data.valid(1, 11, 2000)) |
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.
выполнено
div = DivisionByNull(10, 100) | ||
print(DivisionByNull.divide_by_null(10, 0)) | ||
print(DivisionByNull.divide_by_null(10, 0.1)) | ||
print(div.divide_by_null(100, 0)) |
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.
не выполнено, в этом задании нужно
-) создать класс-исключение
-) сгенерировать это исключение
-) отловить его через try-except
|
||
|
||
try_except = Error(1) | ||
print(try_except.my_input()) |
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.
не выполнено, в этом задании нужно
-) создать класс-исключение
-) сгенерировать это исключение
-) отловить его через try-except
print(unit_2.reception()) | ||
print(unit_3.reception()) | ||
print(unit_1.to_print()) | ||
print(unit_3.to_copier()) |
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.
выполнено
z_2 = ComplexNumber(3, 4) | ||
print(z_1) | ||
print(z_1 + z_2) | ||
print(z_1 * z_2) |
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.
выполнено
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.
все представленные листинги я уже видел
они у кого-то скопированы
No description provided.