Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/subbarayudu-j/TheAlgorithms-Python
/ main
Function
main
project_euler/problem_08/sol2.py:3–5 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
1
from
functools
import
reduce
2
3
def
main():
4
number=input().strip()
5
print(max([reduce(
lambda
x,y: int(x)*int(y),number[i:i+13])
for
i in range(len(number)-12)]))
6
7
if
__name__ ==
'__main__'
:
8
main()
Callers
1
sol2.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected