Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. def real_fizz_buzz(i):
  2. txt = ""
  3. if i % 3 == 0:
  4. txt += "fizz"
  5. if i % 5 == 0:
  6. txt += "buzz"
  7. return txt
  8.  
  9. for i in range(len(X_test)):
  10. text = fizz_buzz_decode(pred[i])
  11. true_text = real_fizz_buzz(i + 1)
  12. print("{}: {} ({})".format(i + 1, text, "✔" if text == true_text else "x"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement