Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Ответы на задания №1-8#888

Open
MityaSorokin wants to merge 21 commits into
GeekBrainsTutorial:masterGeekBrainsTutorial/Python_lessons_basic:masterfrom
MityaSorokin:masterMityaSorokin/Python_lessons_basic-1:masterCopy head branch name to clipboard
Open

Ответы на задания №1-8#888
MityaSorokin wants to merge 21 commits into
GeekBrainsTutorial:masterGeekBrainsTutorial/Python_lessons_basic:masterfrom
MityaSorokin:masterMityaSorokin/Python_lessons_basic-1:masterCopy head branch name to clipboard

Conversation

@MityaSorokin

@MityaSorokin MityaSorokin commented Oct 15, 2019

Copy link
Copy Markdown

Задание №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

@kotofeuz kotofeuz left a comment

Copy link
Copy Markdown

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]

Copy link
Copy Markdown

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.