Note that there are some explanatory texts on larger screens.

plurals
  1. POMy code doesn't run properly, what is wrong in there?
    primarykey
    data
    text
    <pre><code>hand = ['A','Q'] points = 0 player_cards1 = ['2'] value1 = 2 player_cards2 = ['3'] value2 = 3 player_cards3 = ['4'] value3 = 4 player_cards4 = ['5'] value4 = 5 player_cards5 = ['6'] value5 = 6 player_cards6 = ['7'] value6 = 7 player_cards7 = ['8'] value7 = 8 player_cards8 = ['9'] value8 = 9 player_cards9 = ['T'] value9 = 10 player_cards10 = ['Q'] value10 = 10 player_cards11 = ['K'] value11 = 10 player_cards12 = ['J'] value12 = 10 ACE11 = ['A'] value13 = 11 for hand in player_cards1: flag = True if flag == True: points = points + value1 for hand in ACE11: flag = True if flag == True: points = points + value13 for hand in player_cards2: flag = True if flag == True: points = points + value2 for hand in player_cards3: flag = True if flag == True: points = points + value3 for hand in player_cards4: flag = True if flag == True: points = points + value4 for hand in player_cards5: flag = True if flag == True: points = points + value5 for hand in player_cards6: flag = True if flag == True: points = points + value6 for hand in player_cards7: flag = True if flag == True: points = points + value7 for hand in player_cards8: flag = True if flag == True: points = points + value8 for hand in player_cards9: flag = True if flag == True: points = points + value9 for hand in player_cards10: flag = True if flag == True: points = points + value10 for hand in player_cards11: flag = True if flag == True: points = points + value11 for hand in player_cards12: flag = True if flag == True: points = points + value12 print points </code></pre> <p>It ran fine in the first five blocks and then it just gives me to total value of the whole deck (95). How do I fix this? It's supposed to give me the value of the cards in the Hand only. What did I do wrong in here?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload