Computer Science, asked by ali804063, 2 months ago

write a python program
Assume d1 and d2 have the numbers on 2 dice. Accept d1 and d2 as input. First, check to see that they are in the proper range for dice. If not, print a message. Otherwise, determine the outcome. If the sum is 7 or 11, print winner. If the sum is 2, 3 or 12, print loser. Otherwise print the points.​

Answers

Answered by krishnasuraj30
1

d1=int(input('enter the number range is 1 to 6'))

if d1 >6 :

     print('out of range')

d2=int(input('enter the number range is 1 to 6'))

if d2 >6 :

     print('out of range')

a=d1+d2

if a== 7 or a==11:

      print('winner')

elif a==2 or a==3 or a==12 :

       print('loser')

else:

       print(a)

   

Similar questions