import randint
int(sum=0
roll=random.randint(1,6)
(rollAgain="A"
while(sum!=50 and rollAgain=="A")
if(sum!=50 and rollAgain=="A")
sum=sum+roll
print(sum)
rollAgain+input("Roll again? A for yes B for no")
roll+random.randint(1,6)
else:
print(Buster
Answers
Answered by
0
import randint
int(sum=0
roll=random.randint(1,6)
(rollAgain="A"
while(sum!=50 and rollAgain=="A")
if(sum!=50 and rollAgain=="A")
sum=sum+roll
print(sum)
rollAgain+input("Roll again? A for yes B for no")
roll+random.randint(1,6)
else:
print(Buster
The output is 7
Similar questions
English,
6 months ago
Math,
6 months ago
English,
1 year ago
Math,
1 year ago
Computer Science,
1 year ago