-
Notifications
You must be signed in to change notification settings - Fork 313
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
Lesson 6 #1862
base: master
Are you sure you want to change the base?
Lesson 6 #1862
Conversation
"""Однострочное""" | ||
classic_dict = {i: i for i in range(10000)} | ||
#classic_dict = None | ||
return classic_dict |
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.
- что такое """Однострочное"""? такого технического термина нет
- i: i for i in range(10000) - а это разве не цикл
задание не проработано
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.
здесь нет оптимизации. вы и там, и там создаете словарь
Время выполнения - 0.21866030000000003 cек | ||
|
||
Оптимизированное оздание словаря | ||
Используемая память - 0.0 MiB |
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.