This file contains 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
# Генерирует следующую строку последовательности | |
def sequence(str) | |
i = 0 | |
count = 1 | |
start = 0 | |
str2='' | |
while i < str.length | |
if str[i+1] == str[start] | |
i = i + 1 | |
count = count + 1 |