Question: Def roll _ off ( hand 1 , hand 2 ) : D 1 = random.randint ( 1 , 6 ) D 1 = random.randint

Def roll_off(hand1,hand2):
D1= random.randint(1,6)
D1= random.randint(1,6)
Sum1= D1+ D2+ hand1
Def rollem( sum1, sum2):
Sun= sume1+sume2
Rewrite the assignment for sum1 to use a function call to rollem and remove the assignments for D1 and D2. Do not forget to add hand1 to the function call

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!