mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 09:21:13 +08:00
Make some ruff fixes (#8154)
* Make some ruff fixes * Undo manual fix * Undo manual fix * Updates from ruff=0.0.251
This commit is contained in:
@ -6,7 +6,7 @@ def bin_exp_mod(a, n, b):
|
||||
7
|
||||
"""
|
||||
# mod b
|
||||
assert not (b == 0), "This cannot accept modulo that is == 0"
|
||||
assert b != 0, "This cannot accept modulo that is == 0"
|
||||
if n == 0:
|
||||
return 1
|
||||
|
||||
|
Reference in New Issue
Block a user