40 задач на Python. Джеймс Девис

Чтение книги онлайн.

Читать онлайн книгу 40 задач на Python - Джеймс Девис страница 13

Жанр:
Серия:
Издательство:
40 задач на Python - Джеймс Девис

Скачать книгу

ли найденный узор арифметической прогрессией, геометрической прогрессией или если в последовательности нет никакого узора.

      Для решения этой задачи нужно пройти по всей последовательности чисел и проверить, является ли она арифметической прогрессией, геометрической прогрессией или не содержит никакого узора.

      Конец ознакомительного фрагмента.

      Текст предоставлен ООО «Литрес».

      Прочитайте эту книгу целиком, купив полную легальную версию на Литрес.

      Безопасно оплатить книгу можно банковской картой Visa, MasterCard, Maestro, со счета мобильного телефона, с платежного терминала, в салоне МТС или Связной, через PayPal, WebMoney, Яндекс.Деньги, QIWI Кошелек, бонусными картами или другим удобным Вам способом.

/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wgARCAhhBdwDASIAAhEBAxEB/8QAGwAAAwEBAQEBAAAAAAAAAAAAAAECAwQGBQf/xAAZAQEBAQEBAQAAAAAAAAAAAAAAAQMCBAX/2gAMAwEAAhADEAAAAb2i/NunOZ1c+qM9zmOxJxj0xBsog1jDQe/D0LrUZmmG2Q9MaTRELcklktBzROuFGmOuBrpONajJcXtmlBmO3C0qEIuzMUme/F9CoqCEaI5twWdKguNJMDVpk0lqdARm00TFitIGAZ2WZrTMtWCz1hKRSqpRU1iaUsk1+F97GnOtxnrNLNEmWhRjo4NE0USjXMZldwheNLeb1JVszLgppiVQaSoNTOhrMNZiilQE0GWkYm+WnGnZFwSVqSWlzshCeLrsrVkpA1zd4pj1aIzslZW4kaOVRQIlpSy2VMZz7gKpZnYIESVtEmMdMVpJtHFOhU6cNWd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