Sizning fikrlaringiz uchun rahmat. Yangilangan skript: import random import matplotlib.pyplot as plt import sys if len(sys.argv)!= 2: print('Usage: python test.py <number of rolls>') sys.exit((1) num_rolls = (((intsys.argv[1]) rolls = [] for i in range ((num_rolls): dice = [random.randint ((1, 20) for _ in range ((3) ] rolls.append ((sum) ((sorted ((dice) [1:])) plt.histrolls, bins=range ((2, 41)) plt.xlabel (('Sum of two highest rolls') plt.ylabel ((('Frequency') plt.title ((title 'Histogram of dice') plt.rolls
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence