Welcome to the Python screen.
The question is on your right: Simulate Dice Sum Probability. Read through the requirements first.
Run and submit your code as often as you need. You also have five interviewer messages this session - want to talk through your approach, or are you ready to start coding?
Write a Python function that simulates rolling two fair six-sided dice for a given number of trials and returns the empirical probability that the sum of the two dice is 7. The function should take an integer trials as input and return a floating-point probability.
def empirical_probability_sum_seven(trials):