import random
# Write your code here
R = 2
C = 3
G = [[0, 0, 1], [1, 0, 1]]
totalNoOfEvents = R * C
PofE = 0
for i in range(R):
  for j in range(C):
    if G[i][j] == 1:
      PofE += 1 

print(PofE/totalNoOfEvents) 
by