What I am trying to do is create a while loop that always begins by gathering input. However, whenever I run it and input "hit", it seems to skip the prompt and go directly to the conditional statements under "if hit".
while current_score <= 21:
hit = input("Do you want to hit or stay? ")
if hit == 'stay' or ' Stay':
print("The dealer's hand:", dealer_hand)
if(current_score < dcurrent_score):
print("you have lost")
break
if(current_score > dcurrent_score):
print("you have won")
break
if hit == 'hit' or 'Hit':
z = randint(0, 51)
card_three = deck[z]
while card_three == card_two or card_three == card_one:
z = randint(0, 51)
card_three = deck[z]
current_hand.append(card_three)
if current_score > 21:
print("you have lost")
break