Random Cricket Score Generator [upd] - I

: Define two teams with starting scores of zero.

def generate_cricket_score(format_type): # Define parameters based on format if format_type == 'T20': max_overs = 20 base_run_rate = random.gauss(8, 2) # Average 8 runs per over elif format_type == 'ODI': max_overs = 50 base_run_rate = random.gauss(5.5, 1.5) # Average 5.5 runs per over else: return "Invalid Format" i random cricket score generator

A programming error where the code repeats an action indefinitely or incorrectly. : Define two teams with starting scores of zero

The die spun, wobbled, and landed.

Your login link has been sent
to your email

Click the link we have sent to

If you didn't get the email, check your
spam folder or Resend confirmation