Advertisement
yragi_san

Filter Names by Scores

Oct 8th, 2020
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. scores = {
  2. "Rick Sanchez": 70,
  3. "Morty Smith": 35,
  4. "Summer Smith": 82,
  5. "Jerry Smith": 23,
  6. "Beth Smith": 98
  7. }
  8.  
  9. passed = [name for name in scores if scores[name]>65]
  10. print(passed)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement