import random
def card_value (number):
'''docstring'''
def player (cards):
...
docstring
def dealer (cards):
...
docstring
...
num_games = 100000
# initialize variables
#Here you'll do num_games simulations of blackjack games, keeping track of
#how many times the player wins, how many times there is a "push", the
#longest winning streak, and (in a dictionary) the number of times that the
#player gets the different possible scores.
#From the above, calculate the probability that the player wins, and the
# probability of a push.
Output is:
Probability player wins: x.xxxx
Probability of push: x.xxxx
Longest winning streak: x games
{4:x, 5:x, ..., 20:x, 21:x}