I avoid opening a new thread for indentation problem but I just don't get what is wrong here.
import random
random.seed()
def rollDie():
return random.choice([1, 2, 3, 4, 5, 6])
def runSim(goal, numTrials):
total = 0
for i in range(numTrials):
result = ''
for j in range(len(goal)):
result += str(rollDie())
if result == goal:
total += 1
print('Actual probability =', round(1/(6**len(goal)), 8))
estProbability = round(total/numTrials, 8)
print('Estimated Probability =', round(estProbability, 8))
runSim('11111', 1000)Error:IndentationError: unindent does not match any outer indentation level is for line 15print('Actual probability =', round(1/(6**len(goal)), 8))
