mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 01:09:40 +08:00
Factors of a number (#1493)
* Factors of a number * Update factors.py * Fix mypy issue in basic_maths.py * Fix mypy error in perceptron.py * def primes(max: int) -> List[int]: * Update binomial_heap.py * Add a space * Remove a space * Add a space
This commit is contained in:

committed by
Christian Clauss

parent
f8e97aa597
commit
53ff735701
@ -95,8 +95,7 @@ class Perceptron:
|
||||
...
|
||||
>>> perceptron.sort([-0.6508, 0.1097, 4.0009]) # doctest: +ELLIPSIS
|
||||
('Sample: ', ...)
|
||||
classification: P1
|
||||
|
||||
classification: P...
|
||||
"""
|
||||
if len(self.sample) == 0:
|
||||
raise AttributeError("Sample data can not be empty")
|
||||
|
Reference in New Issue
Block a user