Skip to content

Conversation

@AlexN-github
Copy link
Owner

Выполнил

Copy link

@Dzhoker1 Dzhoker1 left a comment

Choose a reason for hiding this comment

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

Оставил комментарии по коду

if max_ is None or val > max_:
max_ = val
print("###########Оцениваем размер переменных Вариант №1")
vars_ = [(x[0], show_size(x[1])) for x in list(locals().items()) if x[0].startswith("__") == 0]

Choose a reason for hiding this comment

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

Отличный подход к решению задачи 👍


import sys

def show_size(x):

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.

3 participants