ErrLookup › TheAlgorithms/Python

TheAlgorithms/Python

All Algorithms implemented in Python · Python · 1,355 source files

Analyzed at f5988cc097 on 2026-08-14. 683 documented errors.

Code / MessageTypeSeverityTags
number of qubits too large to simulate(>10).
validation error quantum, qiskit, simulation, input-validation, precondition
Input is invalid
exception info electronics, resistor, dead-code, valueerror
The number of coefficients should be equal to the degree +…
exception error python, value-error, polynomial, maths, constructor
perfect_cube_binary_search() only accepts integers
exception error python, type-error, input-validation, maths
sorted_collection must be sorted in ascending order
validation error search, exponential-search, duplicated-code, precondition, sorted-input
Exactly one argument must be 0
exception info electronics, dead-code, defensive-programming, impedance
multiplicative_persistence() only accepts integral values
exception error python, value-error, input-validation, maths
Input series is not valid, valid series - [2, 4, 8]
exception error python, value-error, input-validation, series, maths
number must be an integer
exception error python, value-error, input-validation, maths
Barcode ' ' has alphabetic characters.
validation error strings, barcode, validation, user-input
No LU decomposition exists
exception error linear-algebra, lu-decomposition, zero-pivot, singular-matrix, numpy
recursive_lucas_number accepts only integer arguments.
exception error math, lucas, recursion, typeerror
must be a positive integer
exception error python, math, number-theory, validation, value-error
is not valid for a band resistor
exception error electronics, resistor, validation, valueerror
Unable to find the secret passcode
exception error project-euler, search-exhaustion, exception, data-integrity
Area cannot be negative
exception error physics, validation, valueerror, shear-stress
vector must have the same size as the number of columns of…
exception error linear-algebra, matrix, vector, dimension-mismatch, validation
At least one simulation is necessary to estimate PI.
exception error python, value-error, monte-carlo, maths
The elements inside the sequence must contains only
validation error sorting, dutch-national-flag, partition, precondition, enum-values
additive_persistence() only accepts integral values
exception error python, value-error, input-validation, maths
only integers accepted as input
exception error python, type-error, input-validation, maths
Invalid upper or lower bound!
validation error search, linear-search, recursion, off-by-one, bounds
vol_spheres_intersect() only accepts non-negative values
exception error math, validation, geometry, valueerror
Date must be between 1 - 31
validation error date, validation, string-parsing, valueerror
Step size must be an integer.
exception error matrix, typeerror, step-size, integer-validation
Input value of [number= ] must be an integer
exception error math, sequences, juggler, typeerror, validation
Number must instead be a positive integer
exception error python, value-error, primes, sieve, maths
The input value cannot be less than 2
exception error python, value-error, factorization, maths
is_prime() only accepts positive integers
exception error python, value-error, primes, input-validation, maths
The word parameter should be a string of length greater…
validation error physics, acoustics, domain-error, supersonic
is not a valid color for significant figure bands
exception error electronics, resistor, color-code, validation, valueerror
list index out of range
exception error stack, expression-parsing, index-error, python
Resistor at index has a negative value!
exception error electronics, resistor, series, validation
Input list must be a non empty list
exception error python, value-error, empty-list, series, maths
Invalid 'from_type' value
exception error python, value-error, units, length, input-validation
k must be an integer.
validation error search, fibonacci, type-error, input-validation
Factor value should be from 0 to
exception error image-processing, dithering, validation, python
Invalid value for fuzzy set
validation error fuzzy-logic, nan, dead-code, valueerror
Input series is not valid, valid series - [2, 4, 6]
exception error python, value-error, input-validation, series, maths
Expected string as input, found
validation error strings, naming-convention, type-error, input-validation
The parameter idx_original_string type must be int or…
exception error type-validation, burrows-wheeler, type-coercion, compression
number must be integer and greater than zero
exception error math, gcd, factorization, typeerror, validation
solve_simultaneous() requires at least 1 full equation
exception error python, math, linear-algebra, singular-system, value-error
Invalid IPv4 address format
exception error python, value-error, ipv4, network, input-validation
Out of bounds
exception error linked-list, out-of-bounds, insert, index
change_component: indices out of bounds
exception error linear-algebra, matrix, index-out-of-range, off-by-one, validation
Invalid Strand
validation error strings, bioinformatics, dna, validation, alphabet
Input number is too large
exception error conversions, numbers-to-words, validation, overflow
numbers must be integer and greater than zero
exception error math, gcd, input-validation, exception-wrapping
Empty string was passed to the function
exception error python, value-error, octal, binary, empty-input
'float' object cannot be interpreted as an integer
exception error python, type-error, radix, input-validation
Invalid magic number
exception critical neural-network, mnist, data-loading, corrupt-file, valueerror
Matrix is not square
validation error linear-algebra, gaussian-elimination, linear-system, validation
Cannot multiply matrix of dimensions
exception error matrix, dimension-mismatch, valueerror, linear-algebra
A Matrix can only be multiplied by an int, float, or…
exception error matrix, typeerror, type-mismatch, operator-overloading
factorial_recursive() only accepts integral values
exception error math, factorial, type-error, valueerror
Input is not a valid postfix expression
exception error stack, expression-evaluation, arithmetic-error, python
list index out of range.
exception error linked-list, circular-list, index-error, insert, out-of-bounds
power must be a positive integer
exception error maths, autodiff, dual-numbers, operator-overload, valueerror
size of parity don't match with size of data
exception error hamming-code, error-correction, validation, bit-manipulation
Invalid 'to_type' value
exception error python, value-error, units, length, input-validation
Sequence must be list of non-negative integers
validation error sorting, bead-sort, type-error, precondition, non-negative-ints
Coefficient 'a' must not be zero.
exception error python, value-error, quadratic, maths
The list is empty. Provide a non-empty list.
exception error math, statistics, iqr, empty-input, valueerror
One and only one argument must be 0
exception error electronics, validation, ohms-law, valueerror
Negative edge weight after reweighting: numeric error
exception error graph, shortest-path, johnson, floating-point, dijkstra
Invalid numbering system
exception error conversions, numbers-to-words, validation, enum
operands could not be broadcast together with shape
exception error matrix, shape-mismatch, broadcasting, valueerror
all values must be
validation error dynamic-programming, hmm, type-validation
Matrix has no element
exception error linear-algebra, matrix, determinant, empty-input, validation
Must be 10 characters long
validation error date, validation, string-parsing, valueerror
Non-hexadecimal value was passed to the function
exception error python, value-error, hex, decimal, input-validation
Principal borrowed must be > 0
exception error finance, emi, validation, bare-exception
The number of columns in the first matrix must be equal to…
exception error matrix, linear-algebra, dimension-mismatch, valueerror
area_reg_polygon() only accepts integers greater than or…
exception error python, math, geometry, validation, valueerror, type-check, polygon
Invalid velocity. Should be a positive number.
validation error physics, projectile-motion, input-validation, valueerror
The parameter days should be a list of integers
validation error python, input-validation, type-error, dynamic-programming
Length must be a positive integer.
exception error python, math, validation, value-error
The entered barcode has a negative value. Try again.
validation error strings, barcode, validation, negative-value, user-input
Negative cycle found
exception critical graphs, shortest-path, negative-cycle, bellman-ford
The nodes number should be same as the number of coins
exception error binary-tree, precondition, coins, invariant
We need some nodes to work with.
validation error cli, input-validation, main-guard, binary-tree
Cannot Compute Geometric Mean for these numbers.
exception error math, statistics, geometric-mean, domain-error, negative-values
Length must be a positive.
exception error maths, geometry, validation, valueerror, int-only-api
Power cannot be negative in any electrical/electronics…
exception error electronics, validation, valueerror, power
Scores cannot be empty
validation warning physics, unreachable-code, defensive-programming
Negative weight cycle detected
exception critical graph, shortest-path, johnson, bellman-ford, negative-cycle
'table' has to be of square shaped array but got a
validation error linear-algebra, matrix, validation, lu-decomposition, numpy
multiplicative_persistence() does not accept negative values
exception error python, value-error, input-validation, maths
Unsupported type given for another
exception error matrix, sherman-morrison, typeerror, type-mismatch
k integer must be greater or equal to zero.
validation error search, fibonacci, precondition, input-validation
That number is larger than our acceptable range.
validation error python-euler, palindrome, valueerror, misleading-message, range-check
String lengths must match!
validation error python, strings, hamming-distance, validation, valueerror
Given three sides do not form a triangle
exception error python, math, geometry, validation, valueerror, triangle-inequality, herons-formula
Parameter n must be int or castable to int.
exception critical python-euler, python2-syntax, typeerror, validation, migration
Set a and b must either both be sets or be either a list or…
exception error math, similarity, jaccard, type-mismatch, valueerror
is not a valid color
exception error electronics, resistor, color-code, validation
index out of range
exception error linear-algebra, vector, index-out-of-range, off-by-one, validation
Initial orbit radius must be greater than zero.
exception warning physics, cli, user-input, valueerror, orbital-mechanics
is not in genes list, evolution cannot converge
validation error genetic-algorithm, input-validation, valueerror