project # print('money:'moneybet getbet(moneygive the dealer and player two cards from the deck eachdeck getdeck(dealerhand [deck pop()deck pop()playerhand [deck pop()deck pop()handle player actionsprint('bet:'betwhile truekeep looping until player stands or busts displayhands(playerhanddealerhandfalseprint(check if the player has bustif gethandvalue(playerhand break get the player' moveeither hsor dmove getmove(playerhandmoney bethandle the player actionsif move =' 'player is doubling downthey can increase their betadditionalbet getbet(min(bet(money bet))bet +additionalbet print('bet increased to {format(bet)print('bet:'betif move in (' '' ')hit/doubling down takes another card newcard deck pop(ranksuit newcard print('you drew {of {format(ranksuit)playerhand append(newcardif gethandvalue(playerhand the player has bustedcontinue if move in (' '' ')stand/doubling down stops the player' turn break handle the dealer' actionsif gethandvalue(playerhand< while gethandvalue(dealerhand the dealer hitsprint('dealer hits 'dealerhand append(deck pop()displayhands(playerhanddealerhandfalseif gethandvalue(dealerhand break the dealer has busted input('press enter to continue '