Решение задач Code Wars на Python. Bases Everywhere. 7 kyu

You will have to create a function which takes in a sequence of numbers in random order and you will have to return the correct base of those numbers. The base is the number of unique digits. For example, a base 10 number can have 10 unique digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 and a base 2 number (Binary) can have 2 unique digits: 0 and 1. The sequence will always be 10 numbers long and we know that the base is going to be between 2 and 10 inclusive so no need to worry about any letters. When sorted, the sequence is made up of consecutive numbers. Разбор задач с Code Wars: Code Wars 8 kyu - Code Wars 7 kyu - Разбор задач по Python (Питон): “Поколение Python“: курс для профессионалов - “Поколение Python“: курс для продвинутых - “Поколение Python“: курс для начинающих - “Программирование на Python“ - Единоразовая поддержка -