SHARE
TWEET

Untitled

a guest Sep 19th, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Use an if, elseif, else statement to check the total value of the dices.
  2. # Answer with 'small' if the sum is smaller than 11, 'intermediate' if the
  3. # sum is greater than or equal to 11 but smaller than 21. If the sum is
  4. # greater than or equal to 21 answer with 'big'.
  5. #
  6. # Write your code below and put the answer into the variable ANSWER.
  7. #
  8.  
  9. dice4 = 6
  10. dice5 = 5
  11.  
  12.  
  13. numbers_sum2 = numbers_sum + dice4 + dice5
  14.  
  15. if numbers_sum2 < 11:
  16.     ANSWER = "small"
  17. elif numbers_sum2 >= 11 < 21:
  18.     ANSWER = "intermediate"
  19. else numbers_sum2 <= 21:
  20.     ANSWER = "big"
  21. # Use an if, elseif, else statement to check the total value of the dices.
  22. # Answer with 'small' if the sum is smaller than 11, 'intermediate' if the
  23. # sum is greater than or equal to 11 but smaller than 21. If the sum is
  24. # greater than or equal to 21 answer with 'big'.
  25. #
  26. # Write your code below and put the answer into the variable ANSWER.
  27. #
  28.  
  29. dice4 = 6
  30. dice5 = 5
  31.  
  32.  
  33. numbers_sum2 = numbers_sum + dice4 + dice5
  34.  
  35. if numbers_sum2 < 11:
  36.     ANSWER = "small"
  37. elif numbers_sum2 >= 11 < 21:
  38.     ANSWER = "intermediate"
  39. else numbers_sum2 <= 21:
  40.     ANSWER = "big"
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