-
Notifications
You must be signed in to change notification settings - Fork 39
Мостовский Артём #30
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: main
Are you sure you want to change the base?
Мостовский Артём #30
Conversation
vongostev
left a comment
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.
Все нормально, учтите в будущем мои замечания.
| import matplotlib.pyplot as plt | ||
|
|
||
| def poisson(l, n): | ||
| if not(l>0 or n>0 or isinstance(n, int)): |
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.
Это лучше переписать в виде if l < 0 or n < 0 or not isinstance(n, int). Но вообще внезапное переназначение переменной без дополнительных сообщений -- плохой тон
| n = np.arange(len(distr)) | ||
| c = distr*n**k | ||
| return c.sum() | ||
| def av(distr): |
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.
Следите за PEP8
|
Вот почему нельзя переиспользовать функции... |
|
Нормально. Зачет |
No description provided.