-1
Hello! I’m doing a histogram in Python, but in the line Histogram = Counter(decile(grids) for grade in grids) I find error with the Counter function. I already did the test using import Collections but I couldn’t. Following the lines developed so far:
grades = [83, 95 ,91, 87, 70, 0, 85, 82, 100, 67, 73, 77, 0]
decile = lambda grade: grade / 10 * 10
histogram = collections.Counter(decile(grades) for grade in grades)
Thank you Daniel! In this case, what would be the appropriate structure?
– Mauro Junior