SHARE
TWEET

Untitled

a guest Oct 22nd, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def generate():
  2.     s = "https://drive.google.com/open?id=16rMAoEnyO5DjGFLE3qLs2C5BUSftHBDS"
  3.     return s
  4.  
  5. def solve(dataset):
  6.     return "bad\nbad\ngood\nbad\nbad\nbad\nbad\nbad\nbad\ngood\ngood\ngood\ngood\ngood\ngood\ngood\ngood\ngood\ngood\ngood"
  7.  
  8. def check(reply, clue):
  9.     check_reply = reply.split()
  10.     check_clue = clue.split()
  11.     counter = 0
  12.     for i in range(len(check_clue)):
  13.         if check_reply[i] == check_clue[i]:
  14.             counter = counter + 1
  15.     accuracy = round(counter/len(check_clue), 1)
  16.     feedback = "Your accuracy is: {}.".format(accuracy)
  17.     if accuracy>=0.9:
  18.         return True, feedback
  19.     elif 0.5<=accuracy<0.9:
  20.         return accuracy, feedback
  21.     elif accuracy<0.5:
  22.         return False, feedback
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top