Challenge: Functioning Blackjack Game
Python 3, 574 \$\cdots\$ 338 337 bytes



from random import*
e,L,B,P=exit,"Lose","Bank:","Player:"
d=[*range(2,12)]*4+[10]*12
c=d.pop
def h(l,m):
 l+=[c()]
 if sum(l)&gt;21and 11in l:l[l.index(11)]=1
 print(m,*l);return sum(l)
shuffle(d)
b=[]
t=h(b,B)
p=[c()]
u=h(p,P)
u&gt;20&lt;e("Blackjack")
while'h'==input():u=h(p,P)
u&gt;21&lt;e(L)
while t&lt;18:t=h(b,B)
22&gt;t&gt;u&lt;e(L)
u==t&lt;e("Draw")
e("Win")


Try it online!

Saved 34 bytes thanks to @ReinstateMonica!!!