Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def evaluate(*, classroom, front, back,
- next_to, near_to, not_next_to, not_near):
- num_broken_promises = 0
- # Count broken promises
- return num_broken_promises
- score = evaulate(
- classroom=[
- ('tomas', 'olav', 'fredrik'),
- ('øystein', 'odd', 'martin)]
- ],
- front=['olav', 'odd'],
- back=['øystein'],
- next_to=[
- ('tomas', 'olav'),
- ('odd', 'martin')
- ],
- near_to=[
- ('tomas', 'odd')
- ]
- not_near=[
- ('fredrik', 'øystein'),
- ('fredrik', 'tomas'),
- ],
- not_next_to=[
- ('olav', 'fredrik')
- ],
- )
Add Comment
Please, Sign In to add comment