Question: please use python a) use the loop : play the game 10000,100000,1000000times seperately. calculate the expected payoff, record excecution time of each round b) use

a) use the loop : play the game 10000,100000,1000000times seperately. calculate the expected payoff, record excecution time of each round b) use veterization programming: play the game 10000,100000,1000000times seperately. calculate the expected payoff, record running time eaxh time. please show a) and b) the pay off condition is if : num>= 4 payoff = 2 else: payoff= -1 import random dice_num = random.randint (1,6) if dice_num>=4: payoff=2 else: payoff=-1 print ("dice_num=", dice_num, "payoff=" payoff)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
