def hit():
global hitsum
hitsum = 0
v=random.choice(cards)
c=random.choice(suits)
if v=="Ace":
hitsum=hitsum+1
print "You were dealt","a",v,"of",c
elif v=="Jack":
hitsum=hitsum+11
print "You were dealt","a",v,"of",c
elif v=="Queen":
hitsum=hitsum+12
print "You were dealt","a",v,"of",c
elif v=="King":
hitsum=hitsum+13
print "You were dealt","a",v,"of",c
else:
hitsum=hitsum+v
print "You were dealt","a",v,"of",c
computer()
choice=raw_input("Would you like to hit or stay? ")
if choice=="hit":
hit()
totalsum = hitsum + usersum
print "Your total is", totalsum
elif choice=="stay":
totalsum=usersum
else:
print "Invalid request"
This code is an excerpt from my blackjack game. I made a user defined function for randomly generating a card whenever someone asks for a hit. However this only works for one choice. If i choose hit once, I don't get an option to choose it again. how do i rectify that?