Created
August 13, 2022 06:33
-
-
Save gncll/4b26991c39af852c3f591e314d919471 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grades = { | |
"Harry Potter": 70, | |
"Ron Weasley": 35, | |
"Hermione Granger": 99, | |
"Draco Malfoy": 23, | |
"Neville Longbottom": 98 | |
} | |
graded = [name for name, score in grades.items() if score >= 90] | |
print(graded) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment