Skip to content

lesson8 - #8

Open
b0rsh3c wants to merge 1 commit into
masterfrom
lesson8
Open

lesson8#8
b0rsh3c wants to merge 1 commit into
masterfrom
lesson8

Conversation

@b0rsh3c

@b0rsh3c b0rsh3c commented Feb 2, 2020

Copy link
Copy Markdown
Owner

No description provided.

Comment thread Lesson_8/1.py
for char in string:
coded.append(code_table[char])

print(f"Закодированная строка: {''.join(coded)}") No newline at end of file

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 Lesson_8/2.py
r.add(hashlib.sha1(s[i:j].encode('utf-8')).hexdigest())
print(r)

print(f"Количество различных подстрок в строке '{s}' равно {len(r)}") No newline at end of file

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