Improve code on f-strings and brevity (#6126)

* Update strassen_matrix_multiplication.py

* Update matrix_operation.py

* Update enigma_machine2.py

* Update enigma_machine.py

* Update enigma_machine2.py

* Update rod_cutting.py

* Update external_sort.py

* Update sol1.py

* Update hill_cipher.py

* Update prime_numbers.py

* Update integration_by_simpson_approx.py
This commit is contained in:
Omkaar
2022-05-13 18:21:44 +05:30
committed by GitHub
parent e95ecfaf27
commit dbee5f072f
10 changed files with 14 additions and 18 deletions

View File

@ -181,7 +181,7 @@ def _enforce_args(n: int, prices: list):
if n > len(prices):
raise ValueError(
f"Each integral piece of rod must have a corresponding "
"Each integral piece of rod must have a corresponding "
f"price. Got n = {n} but length of prices = {len(prices)}"
)