FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
tutorials/core-python/Core_Python/com/ReduceExample.py at master · deepdalsania/tutorials · GitHub
deepdalsania
/
tutorials
Public
Notifications
You must be signed in to change notification settings
Fork
7
Star
8
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
tutorials
/
core-python
/
Core_Python
/
com
/
ReduceExample.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
5 lines (4 loc) · 171 Bytes
Breadcrumbs
tutorials
/
core-python
/
Core_Python
/
com
/
ReduceExample.py
Copy path
File metadata and controls
5 lines (4 loc) · 171 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
from
functools
import
reduce
if
__name__
==
"__main__"
:
# using reduce
print
(
reduce
(
lambda
x
,
y
:
x
if
x
>
y
else
y
, [
int
(
input
())
for
_
in
range
(
int
(
input
()))]))
Back
|
FazBrowse Home
|
New Git URL