mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-19 19:03:02 +08:00
GitHub Action formats our code with psf/black (#1569)
* GitHub Action formats our code with psf/black @poyea Your review please. * fixup! Format Python code with psf/black push
This commit is contained in:
@ -14,15 +14,13 @@ import os
|
||||
from math import log10
|
||||
|
||||
|
||||
def find_largest(data_file: str="base_exp.txt") -> int:
|
||||
def find_largest(data_file: str = "base_exp.txt") -> int:
|
||||
"""
|
||||
>>> find_largest()
|
||||
709
|
||||
"""
|
||||
largest = [0, 0]
|
||||
for i, line in enumerate(
|
||||
open(os.path.join(os.path.dirname(__file__), data_file))
|
||||
):
|
||||
for i, line in enumerate(open(os.path.join(os.path.dirname(__file__), data_file))):
|
||||
a, x = list(map(int, line.split(",")))
|
||||
if x * log10(a) > largest[0]:
|
||||
largest = [x * log10(a), i + 1]
|
||||
|
Reference in New Issue
Block a user