Part 2 of blackjack game
Indentation

You should indent 4 spaces. Here's the PEP 8 guidelines on this.

Equality

Instead of


while (sum(player) &lt;= 21 and stay == False and play_again == True):



do this

while(sum(player) &lt;= 21 and not stay and play_again):


You don't need to == True/False, as those variables will equate to those boolean values already within the statement. This applies to other parts of your program as well.

Operator spacing

There should be a space before and after every operator (+ - * / =, etc.) in your program. This increases readability and makes your code look nicer.

Unnecessary parentheses

You don't need parentheses around simple if statements, unless you're trying to group specific conditions with each other. But something like this:


if (str_bet == ''):



should just be this

if str_bet == '':