Guest User

Untitled

a guest
Jan 19th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. for item in hand:
  2. item = item.split(' of ')
  3. print(f'item 0 = {item}')
  4. if item[0] == '11' or '12' or '13':
  5. item[0] = '10'
  6. print(f'item 0 = {item}')
  7. if int(item[0]) == 1:
  8. #ace = input('Type the number 1 or 11')
  9. item[0] = '1'
  10. print(item[0])
  11. print(f'Adding {item[0]} to total')
  12. total += int(item[0])
  13. print(total)
  14.  
  15. for item in hand:
  16. item = item.split(' of ')
  17. if item[0] == '11' or '12' or '13':
  18. item[0] = '10'
  19. if int(item[0]) == 1:
  20. item[0] = '1'
  21. total += int(item[0])
  22. print(total)
Add Comment
Please, Sign In to add comment