示例#1
0
def main():
    helper = Helpers()
    random_str = helper.create_random_chars_with_choice(11)
    print(f'random str: {random_str}')

    unique = is_unique(random_str)
    if unique:
        print(f'the string is unique')
def main():
    helper = Helpers()
    randlist = helper.create_random_chars_with_choice(list_size=20)
    randstr = ''.join(randlist)
    print(f'\nrandstr: {randstr}')

    first_unique = first_non_repeating(randlist)
    print(f'the first unique character is {first_unique}')