Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- exam_marks = {'Cierra Vega': 175, 'Alden Cantrell': 200, 'Kierra Gentry': 165, 'Pierre Cox': 190}
- limit = input()
- limit = int(limit)
- dictionary = {}
- for key,value in exam_marks.items():
- if value > limit:
- dictionary[key]=value
- print(dictionary)
Add Comment
Please, Sign In to add comment