mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-19 19:03:02 +08:00
psf/black code formatting (#1277)
This commit is contained in:

committed by
Christian Clauss

parent
07f04a2e55
commit
9eac17a408
@ -23,12 +23,12 @@ def solution():
|
||||
7273
|
||||
"""
|
||||
script_dir = os.path.dirname(os.path.realpath(__file__))
|
||||
triangle = os.path.join(script_dir, 'triangle.txt')
|
||||
triangle = os.path.join(script_dir, "triangle.txt")
|
||||
|
||||
with open(triangle, 'r') as f:
|
||||
with open(triangle, "r") as f:
|
||||
triangle = f.readlines()
|
||||
|
||||
a = map(lambda x: x.rstrip('\r\n').split(' '), triangle)
|
||||
a = map(lambda x: x.rstrip("\r\n").split(" "), triangle)
|
||||
a = list(map(lambda x: list(map(lambda y: int(y), x)), a))
|
||||
|
||||
for i in range(1, len(a)):
|
||||
|
Reference in New Issue
Block a user