Skip to content

Таланов И.Д#292

Open
icething wants to merge 3 commits into
GeekBrainsTutorial:masterfrom
icething:master
Open

Таланов И.Д#292
icething wants to merge 3 commits into
GeekBrainsTutorial:masterfrom
icething:master

Conversation

@icething

Copy link
Copy Markdown

Выполнил задание уровня normal lesson 2

if i > 0 and math.sqrt(i) % 1 == 0:
b.append(math.sqrt(i))
print(b)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

хорошо

date = input('Введите дату в формате dd.mm.yyyy ')
new_date = date.split('.')
print('Вы ввели {} {} {}'.format(day[new_date[0]], month[new_date[1]], new_date[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.

все верно

lst.append(random.randint(-100, 100))
i += 1
print(lst)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

отлично

for i in lst:
if lst.count(i) == 1:
lst3.append(i)
print(lst3)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

и с этим разобрались, вижу множества хорошо изучили

@icething

Copy link
Copy Markdown
Author

Выполнил HW3_easy

number_2 = int(number * round_number + 0.5)
scale_number = number_2 / round_number
return scale_number

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

хорошо

print('У вас счастливый билет!')
else:
print('У вас обычный билет')
# Не могу понять в чем ошибка, логика программы вроде бы правильная :(

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

отлично. задействовали срезы

lst1 = [1, 2, 4, 0]
lst2 = [el ** 2 for el in lst1]
print(lst2)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

хорошо

lst2 = ['ананас', "виноград", "яблоко", "персик", "малина"]
lst3 = [el for el in lst1 if el in lst2]
print(lst3)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

отлично


lst = [-5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
lst2 = [el for el in lst if not(el % 3) and el > 0 and el % 4]
print(lst2)

Copy link
Copy Markdown

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.

2 participants