Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for item in hand:
- item = item.split(' of ')
- print(f'item 0 = {item}')
- if item[0] == '11' or '12' or '13':
- item[0] = '10'
- print(f'item 0 = {item}')
- if int(item[0]) == 1:
- #ace = input('Type the number 1 or 11')
- item[0] = '1'
- print(item[0])
- print(f'Adding {item[0]} to total')
- total += int(item[0])
- print(total)
- for item in hand:
- item = item.split(' of ')
- if item[0] == '11' or '12' or '13':
- item[0] = '10'
- if int(item[0]) == 1:
- item[0] = '1'
- total += int(item[0])
- print(total)
Add Comment
Please, Sign In to add comment