TheAlgorithms/Python

Documented errors, page 4 of 7. Back to TheAlgorithms/Python

Code / MessageTypeSeverityTags
We need some text to work with.
exception error value-validation, lz77, compression, empty-input
Wrong input data's dimensions... dataset
exception error numpy, input-validation, similarity-search
math range error
exception error math, gamma, overflow, floating-point
Relative densities cannot be greater than one
validation error physics, cosmology, range-check, valueerror
surface_area_conical_frustum() only accepts non-negative…
exception error python, math, geometry, validation, valueerror, input-validation
Matrix is not invertible
validation error linear-algebra, matrix-inverse, singular-matrix, numpy, validation
partitions must be a positive number!
exception error math, partitioning, input-validation
solve_simultaneous() requires lists of integers
exception error python, math, linear-algebra, type-check, value-error
Usage of script: script_name <size_of_canvas:int>
exception error cellular-automata, cli, usage, python
Data must have dimensions N x 1
exception error machine-learning, regression, numpy, shape-mismatch
Hand should contain only 5 cards
validation error project-euler, poker, validation, valueerror, data-format
Mismatched parentheses
exception error stack, expression-parsing, validation, python
Please enter positive integers for n and k where n >= k
exception error maths, combinatorics, validation, valueerror
surface_area_torus() only accepts non-negative values
exception error python, math, geometry, validation, valueerror, input-validation
Incorrect input: Either
exception error graph, adjacency-matrix, edges, vertex-registration
Invalid input
validation error project-euler, validation, valueerror, input-validation
Node with label does not exist
exception error binary-tree, lookup, missing-key, search
Purchase value cannot be less than residual value
validation error finance, input-validation, valueerror
The input value of 'num_rows' should be 'int'
exception error matrix, pascal-triangle, typeerror, input-validation
The parameter costs should be a list of three integers
validation error dynamic-programming, input-validation, valueerror
Actual result should be float. Value passed is a list
validation error machine-learning, forecasting, typeerror, argument-order
Date separator must be '-' or '/'
validation error date, validation, string-parsing, valueerror
Input list must contain at least two elements
exception error boolean-algebra, validation, python
number of qubits must be > 0.
validation error quantum, validation, valueerror, input-validation
Weight can not be negative.
exception error knapsack, greedy, validation, data-quality
Discount rate cannot be negative
validation error finance, input-validation, valueerror
Shift must be non-negative
exception error md5, hash, validation, bit-manipulation, internal-api
Useful years must be an integer
validation error finance, type-checking, typeerror
area_parallelogram() only accepts non-negative values
exception error python, math, geometry, validation, valueerror, input-validation
Either the item is not in the array or the array was…
exception error binary-search, sorted-input, value-validation
Invalid number of bands. Resistor bands must be 3 to 6
exception error electronics, resistor, validation, range-check
all keys must be strings
validation error dynamic-programming, hmm, type-validation
angle must be an Angle object.
validation error geometry, type-validation, dataclass
dequeue from empty queue
exception error queue, data-structures, python, index-error
must have the same size
exception error linear-algebra, vector, dimension-mismatch, validation
must be bigger than
validation error genetic-algorithm, hyperparameters, valueerror
nominal_annual_percentage_rate must be >= 0
validation error finance, input-validation, valueerror
Please enter a valid number
exception error maths, conversion, fractions, validation, valueerror
Speed must be greater than or equal to 1!
validation error physics, relativity, units, range-check, valueerror
Algorithm is unable to find solution
exception error graphs, pathfinding, a-star, unreachable
double_factorial_recursive() not defined for negative values
exception error maths, factorial, recursion, validation, valueerror
Please use 3 unique rotors
exception error enigma, rotor, validation, input-validation
must be a list of strings
validation error dynamic-programming, hmm, type-validation
All values must be greater than 0
exception error maths, geometry, validation, valueerror
Input series is not valid, valid series - [1, 2/3, 2]
exception error python, math, type-check, value-error
vol_spherical_cap() only accepts non-negative values
exception error math, geometry, valueerror, input-validation, volume
Base16 encoded data is invalid: Data does not have an even…
exception error cipher, encoding, base16, validation, python
Invalid Input
exception error math, algorithms, valueerror, sliding-window
n must be an integer
validation error project-euler, type-check, valueerror, input-validation
rbf kernel requires gamma
exception error machine-learning, svm, kernel, hyperparameters
area_triangle() only accepts non-negative values
exception error python, math, geometry, validation, valueerror, input-validation
No height can be negative
validation error dynamic-programming, input-validation, data-cleaning
n must be greater than 0. Got n =
exception error python, input-validation, boundary-check, dynamic-programming
longest_common_substring() takes two strings for inputs
exception error python, input-validation, string, dynamic-programming
All input parameters must be positive
validation error physics, cosmology, input-validation, valueerror
days_between_payments must be > 0
exception error finance, interest, validation, dates
hue should be between 0 and 360
exception error python, validation, range, color, conversion
No value was passed to the function
exception error python, value-error, hex, binary, empty-input
The length should be non-negative
exception error physics, pendulum, validation, negative-value, valueerror
The value of intensity cannot be negative
validation error physics, optics, polarization, input-validation, valueerror
Vector is empty
exception error linear-algebra, vector, empty-input, norm, validation
a gon ring should have a length that is a multiple of 3
validation error project-euler, validation, valueerror, data-format
check_bouncy() accepts only integer arguments
validation error project-euler, type-check, valueerror, input-validation
decode() accepts only 'A', 'B' and spaces
exception error cipher, validation, python
Iterations must be at least 1
exception error linear-algebra, jacobi, validation, iterations
vol_hollow_circular_cylinder() only accepts non-negative…
exception error math, validation, geometry, valueerror
All days elements should be greater than 0
validation error dynamic-programming, input-validation, off-by-one
Residual value must be numeric
validation error finance, type-checking, typeerror
surface_area_cuboid() only accepts non-negative values
exception error python, math, geometry, validation, valueerror, input-validation
Warning: upper bound of deterministic test is exceeded…
exception warning primality, miller-rabin, big-int, cryptography
maclaurin_sin() requires a positive int for accuracy
exception error math, valueerror, parameter-validation, trigonometry
Open Knight Tour cannot be performed on a board of size
validation error physics, input-validation, sign-convention
Predicted probabilities must sum to approximately 1.
exception error machine-learning, loss-function, cross-entropy, softmax, normalization
Acceptor concentration should be positive
validation error electronics, physics, input-validation
Base16 encoded data is invalid: Data is not uppercase hex…
exception error cipher, encoding, base16, validation, python
maclaurin_cos() requires either an int or float for theta
exception error math, type-validation, valueerror, trigonometry
n must be >= 0
validation error project-euler, validation, valueerror, off-by-one
The position should be an integer
exception error type-validation, array, selection, quickselect
area_reg_polygon() only accepts non-negative values as…
exception error math, geometry, input-validation
epsilon must be non-negative, got
validation error geometry, input-validation, preprocessing
Invalid input needed_sum must be between 1 and 1000, power…
validation error physics, empty-collection, valueerror
Value Higher than Pressure at Sea Level !
validation error physics, pressure, unit-conversion, range-check
a and n must be coprime (gcd(a, n) = 1)
exception error math, number-theory, valueerror, modular-arithmetic, coprimality
operation can not be conducted on an object of type
exception error bit-manipulation, type-error, python
area_rhombus() only accepts non-negative values
exception error python, math, geometry, validation, valueerror, input-validation
Donor concentration should be greater than intrinsic…
validation error electronics, physics, units
maclaurin_cos() requires a positive int for accuracy
exception error math, valueerror, parameter-validation, trigonometry
determinant modular of encryption key( ) is not co prime…
exception error hill-cipher, matrix, linear-algebra, validation
factorial_recursive() not defined for negative values
exception error math, factorial, negative-value, valueerror
factorial() only accepts integral values
exception error maths, factorial, validation, valueerror
invalid input option
exception error cli, user-input, keyword-cipher, validation
Molar mass cannot be less than or equal to 0 kg/mol
exception error physics, kinetic-theory, validation, exception, lookup
Temperature cannot be less than 0 K
exception error physics, kinetic-theory, validation, unit-conversion, exception
Impossible gravity
validation error physics, buoyancy, argument-validation, coordinate-systems
maclaurin_sin() requires either an int or float for theta
exception error math, type-validation, valueerror, trigonometry
The array is empty.
exception error value-validation, prefix-sum, range-query, empty-input
is neither a number nor a valid operator
exception error stack, expression-evaluation, validation, python
Invalid 'from_type' value
exception error python, validation, units, pressure, conversion
Invalid 'to_type' value
exception error python, validation, units, pressure, conversion
pop from empty stack
exception error stack, data-structures, index-error, python