#I'm fairly new to coding, and i need to put a bunch of code into a loop until the player says stand
1 messages · Page 1 of 1 (latest)
Thanks for your question :clap:, if someone gives you an answer it would be great if you thanked them with a :white_check_mark: in response. This response will earn you both points for special roles on this server.
Coding blackjack for an assignment
you can you a "while loop"
choice = ""
while choice.lower() not in ["stand"]:
choice = input("Hit or Stand")
# Do the stuff you want to do when choice != "stand"
else:
# You can use "else" at the end of a while loop it will be executed when the condition evals to False
dealer_card = random,randint(15, 25)
```´
Also if you just only use randint import it like this ```py
from random import randint
Then you can just call randint() insteat of random.randint()