From ff9be86390ee916afa66d3eda3f8e7ecb09801eb Mon Sep 17 00:00:00 2001 From: Wen Hong <35587716+wenhongg@users.noreply.github.com> Date: Wed, 7 Oct 2020 23:16:11 +0800 Subject: [PATCH] Hacktoberfest 2020: Rename method for project_euler/problem_99 (#2981) * name method solution in project_euler/problem99 * rename function --- project_euler/problem_99/sol1.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/project_euler/problem_99/sol1.py b/project_euler/problem_99/sol1.py index 0148a80ef..88912e1f0 100644 --- a/project_euler/problem_99/sol1.py +++ b/project_euler/problem_99/sol1.py @@ -17,9 +17,9 @@ import os from math import log10 -def find_largest(data_file: str = "base_exp.txt") -> int: +def solution(data_file: str = "base_exp.txt") -> int: """ - >>> find_largest() + >>> solution() 709 """ largest = [0, 0] @@ -31,4 +31,4 @@ def find_largest(data_file: str = "base_exp.txt") -> int: if __name__ == "__main__": - print(find_largest()) + print(solution())