Question: Write a program that asks a user to roll a single die twice to get a sum value of 7. If the sum is 11,

Write a program that asks a user to roll a single die twice to get a sum value of 7. If the sum is 11, the user loses. If the sum is neither 7 nor 11, the user neither wins nor loses, meaning that there is no decision. The computations have to be made inside a function named roll_die_twice. The input arguments are the numbers that show up in each die when it is rolled.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!