mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 09:21:13 +08:00
Fix doctests and builds in various files (#6233)
* Fix doctest in hamming distance * add line break * try to fix quantum_riper_adder * fix floating point build
This commit is contained in:
@ -18,6 +18,8 @@ def hamming_distance(string1: str, string2: str) -> int:
|
||||
>>> hamming_distance("00000", "11111")
|
||||
5
|
||||
>>> hamming_distance("karolin", "kath")
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
ValueError: String lengths must match!
|
||||
"""
|
||||
if len(string1) != len(string2):
|
||||
|
Reference in New Issue
Block a user