I am trying to compute the probability of rolling a dice n number of times and finding the average.Its basically a Monte Carlo problem. I am new to coding so if someone can help I would really appreciate it.
import random
import sys
num = int(sys.argv[1])
roll =random.randint(1,6)
sum=0
for roll in range(0,num):
sum = sum + int(input())
average = sum / num
print('the average is: ',average)