Skip to content

Conversation

MityaSorokin
Copy link

@MityaSorokin MityaSorokin commented Oct 15, 2019

Задание №7 (не получилось реализовать ветвление при вычитании в задании №7.2 для исключения отрицательных результатов)
UPD. Добавлены упражнения к 8 уроку

@MityaSorokin MityaSorokin changed the title Ответы на задания №1, 2 и задания на №3 Ответы на задания №1-4 Oct 29, 2019
@MityaSorokin MityaSorokin changed the title Ответы на задания №1-4 Ответы на задания №1-5 Oct 30, 2019
@MityaSorokin MityaSorokin changed the title Ответы на задания №1-5 Ответы на задания №1-7 Nov 2, 2019
@MityaSorokin MityaSorokin changed the title Ответы на задания №1-7 Ответы на задания №1-8 Nov 3, 2019
Copy link

@kotofeuz kotofeuz left a 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]

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

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