mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-04 16:57:32 +08:00
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:
@ -29,7 +29,7 @@ def solution():
|
||||
triangle = f.readlines()
|
||||
|
||||
a = map(lambda x: x.rstrip("\r\n").split(" "), triangle)
|
||||
a = list(map(lambda x: list(map(lambda y: int(y), x)), a))
|
||||
a = list(map(lambda x: list(map(int, x)), a))
|
||||
|
||||
for i in range(1, len(a)):
|
||||
for j in range(len(a[i])):
|
||||
|
Reference in New Issue
Block a user