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
@ -39,12 +39,12 @@ def solution():
|
||||
1074
|
||||
"""
|
||||
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 = [[int(y) for y in x.rstrip('\r\n').split(' ')] for x in triangle]
|
||||
a = [[int(y) for y in x.rstrip("\r\n").split(" ")] for x in triangle]
|
||||
|
||||
for i in range(1, len(a)):
|
||||
for j in range(len(a[i])):
|
||||
|
Reference in New Issue
Block a user