Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- data = [["Rafael", 10, 10, 10, 8], ["Marc", 10, 2], ["Luci", 4, 8]]
- target = 11
- for grades in data:
- for grade in grades[1:]:
- if grade < target:
- target = grade
- for grades in data:
- if target in grades[1:]:
- print(grades[0])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement