SHARE
TWEET

Untitled

a guest Jan 19th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
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