This book was written from the ground up to help you master the complexities of this beautiful language. Inside you'll discover a collection of powerful, concise code snippets that will improve the way you write and think.
Together we will deepen the art of creating code to solve complex problems in the most fun, elegant and efficient way!

MARATHON DISTANCE CHECKER.
The marathon_distance function helps Mary determine if the marathon she wants to run is exactly 25 miles long by analyzing the lengths listed in small portions on the sign-up sheet. It returns true if the total distance matches 25 miles, otherwise, it returns false.
def marathon_distance(distances): return sum(map(abs, distances)) == 25
distances = [1, 2, -3, 4, 5, -6, 7, 8, -9, 10]
print(marathon_distance(distances))
# Output: False.
Бесплатно скачать электронную книгу в удобном формате, смотреть и читать:
Скачать книгу 250+ Killer Python One-Liners, Abella H. - fileskachat.com, быстрое и бесплатное скачивание.
Скачать файл № 1 - pdf
Скачать файл № 2 - epub
Ниже можно купить эту книгу, если она есть в продаже, и похожие книги по лучшей цене со скидкой с доставкой по всей России.Купить книги
Скачать - epub - Яндекс.Диск.
Скачать - pdf - Яндекс.Диск.
Дата публикации:
Теги: учебник по программированию :: программирование :: Abella
Смотрите также учебники, книги и учебные материалы:
Следующие учебники и книги:
Предыдущие статьи: