FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Ответы на задания №1-8 by MityaSorokin · Pull Request #888 · GeekBrainsTutorial/Python_lessons_basic · GitHub

Repository navigation

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

Open
MityaSorokin wants to merge 21 commits into
GeekBrainsTutorial:masterfrom
MityaSorokin:master
Open

MityaSorokin wants to merge 21 commits into
GeekBrainsTutorial:masterfrom
MityaSorokin:master

Conversation

MityaSorokin commented Oct 15, 2019 •
edited
Loading

Copy link
Copy Markdown

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

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

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

''' Можно сделать так'''
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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Здесь условие неправильно: my_list.count(el) < 2. Должно быть: ==1

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL