Guest User

Untitled

a guest
Jul 15th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. def evaluate(*, classroom, front, back,
  2. next_to, near_to, not_next_to, not_near):
  3. num_broken_promises = 0
  4.  
  5. # Count broken promises
  6.  
  7. return num_broken_promises
  8.  
  9.  
  10. score = evaulate(
  11. classroom=[
  12. ('tomas', 'olav', 'fredrik'),
  13. ('øystein', 'odd', 'martin)]
  14. ],
  15. front=['olav', 'odd'],
  16. back=['øystein'],
  17. next_to=[
  18. ('tomas', 'olav'),
  19. ('odd', 'martin')
  20. ],
  21. near_to=[
  22. ('tomas', 'odd')
  23. ]
  24. not_near=[
  25. ('fredrik', 'øystein'),
  26. ('fredrik', 'tomas'),
  27. ],
  28. not_next_to=[
  29. ('olav', 'fredrik')
  30. ],
  31. )
Add Comment
Please, Sign In to add comment