Answer:
See attachment for complete program
Explanation:
This imports the random module
import random
The function begins here
def diceTotalScore(a, b, c):
This checks if the outcome of the three dice are the same
<em> if </em>
<em />
<em> earnings = 1000 * a </em><em>--->The earnings for this condition is calculated</em>
This checks if the outcome of two dice are the same
<em> </em>elif 
<em>The following sub conditions checks for the outcomes that are the same</em>
<em> if </em>
<em />
<em> </em>
<em />
<em> elif </em>
<em />
<em> </em>
<em />
<em> elif </em>
<em />
<em> </em>
<em />
<em> earnings = 500 * x </em><em>--->The earnings for this condition is calculated</em>
This checks if no outcome are the same
<em> else:</em>
<em> earnings = 100 * min(a,b,c) </em><em>--->The earnings for this condition is calculated</em>
The function returns then returns earnings
return earnings
The main begins here
The next three lines simulate the rolls of three dice
<em>a = random.randint(1,6)</em>
<em>b = random.randint(1,6)</em>
<em>c = random.randint(1,6)</em>
This calls the TotalScore function and returns the earnings
<em>print("Earnings: "+str(diceTotalScore(a, b, c)))</em>