Logo
Explore Help
Register Sign In
exercism/python
1
0
Fork 0
You've already forked python
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
b3cf79fc0277db3988901b46059f50718ef8df28
python/exercises/practice/perfect-numbers/perfect_numbers.py

8 lines
205 B
Python
Raw Normal View History

perfect-numbers: Update perfect-numbers to reflect changes to canonical data (#1052) * Update perfect numbers test to reflect changes to canonical data * Switch assertRaises to assertRaisesRegex and use context manager syntax * Fix error caused by assertRaisesRegex not being available in Python 2.7 * Remove error message checks * Update exercise placeholder
2017-11-14 15:31:34 -05:00
def classify(number):
Added error handling instruction append, added additional test cases, corrected JinJa2 template, and regenerated test cases.
2021-11-02 03:46:05 -07:00
""" A perfect number equals the sum of its positive divisors.
:param number: int a positive integer
:return: str the classification of the input integer
"""
Add skeleton files for exercises (#415) closes #272
2017-03-12 15:13:28 +01:00
pass
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 236ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API