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
Science,
7 months ago
Science,
7 months ago
World Languages,
7 months ago
English,
1 year ago
Math,
1 year ago
Computer Science,
1 year ago