Chalarangelo / 30-seconds-of-python

Short Python code snippets for all your development needs
https://www.30secondsofcode.org/python/p/1
Creative Commons Attribution 4.0 International
8.83k stars 1.26k forks source link

add snippet aliquot_sum, is_triangle, _mode #150

Closed hetzz closed 4 years ago

hetzz commented 4 years ago

Added three snippets (aliquot_sum, is_triangle, _mode)

Description

aliquot_sum: returns the sum of the proper divisors of the number is_triangle: returns True/ False depending on the angles provided _mode: returns the mode of the list

What does your PR belong to?

Types of changes

Checklist: