Skip to content

Instantly share code, notes, and snippets.

@gncll
Created August 13, 2022 06:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gncll/4b26991c39af852c3f591e314d919471 to your computer and use it in GitHub Desktop.
Save gncll/4b26991c39af852c3f591e314d919471 to your computer and use it in GitHub Desktop.
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