Skip to content

Lesson 2 - #2

Open
shulzhenkoas wants to merge 9 commits into
masterfrom
lesson-2
Open

Lesson 2#2
shulzhenkoas wants to merge 9 commits into
masterfrom
lesson-2

Conversation

@shulzhenkoas

Copy link
Copy Markdown
Owner

Второе ДЗ Шульженко А.С.

Comment thread task-2_easy_2.py

sequence2_1 = [7, '8', 1, 4, 'ab', 'bc', 'cd', 4, 'a', 'ef', '8']
sequence2_2 = ['dc', 2, 4, 'e', 'b', 'cd', 'a', '1']
for item2 in sequence2_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.

Нестандартное решение, но тоже правильное)

Comment thread task-2_normal_1.py
if item1 == abs(item1):
# id1_sqrt = item1 ** 0.5
id1_sqrt = sqrt(item1)
if id1_sqrt == int(id1_sqrt):

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