-
Notifications
You must be signed in to change notification settings - Fork 457
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
Ответы на задания №1-8 #888
base: master
Are you sure you want to change the base?
Conversation
не разобрался с задачей №5 к уроку 3
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.
''' Можно сделать так'''
data = [1, 2, 3, 44, 'ans', ['vlog'], 20, 6, 'мозги', 14, 88]
for type_index in data:
print(type(type_index))
''' | ||
|
||
my_list = [1, 4, 4, 2, 3, 2, 8, 10, 8, 5] | ||
my_new_list = [el for el in my_list if my_list.count(el) < 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.
Здесь условие неправильно: my_list.count(el) < 2. Должно быть: ==1
Задание №7 (не получилось реализовать ветвление при вычитании в задании №7.2 для исключения отрицательных результатов)
UPD. Добавлены упражнения к 8 уроку