⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
document
All Projects
document
Overview
Activity
Issues
Spent time
Gantt
Calendar
News
Documents
Wiki
Files
Download (526 Bytes)
Files
» 13.py
UserName LastName
, 02/21/2025 10:22 AM
def
best_student
(
students
:
dict
):
best_name
=
''
best_score
=
-
float
(
'inf'
)
for
key
,
value
in
students
.
items
():
if
value
>
best_score
:
best_score
=
value
best_name
=
key
return
{
best_name
:
best_score
}
if
__name__
==
'__main__'
:
students
=
{
'a'
:
100
,
'b'
:
90
,
'c'
:
80
,
'd'
:
70
,
'e'
:
60
,
'f'
:
50
,
'g'
:
110
,
'h'
:
30
,
'i'
:
20
,
'j'
:
10
,
}
print
(
best_student
(
students
))
« Previous
1
…
208
209
210
211
212
…
437
Next »
(210-210/437)
Loading...