View difference between Paste ID: uf8KmxvU and 5tUje7BW
SHOW: | | - or go back to the newest paste.
1
def function()
2
	n=int(input(""))
3
	a=int(input(""))
4
	b=int(input(""))
5
	liste = []
6
	comptage = []
7
8
	for k in range(n):
9
		valeur = int(input(""))
10
		liste.append(valeur)
11
12-
	for p in range(len(liste)):
12+
	for p in range(b-a+1):
13
		comptage.append(0)
14
	#comptage = [0] * range(b-a+1)
15
	#comptage = [0 for i in range(b-a+1)]
16-
		for o in range(a,b):
16+
17-
			if(liste[i] == 0):
17+
18-
				comptage[0] += 1
18+
		comptage[liste[i]-a] += 1
19
20
	for j in range(a,b+1):
21-
		print("nombre de", j, " : ", comptage[j])
21+
		print("nombre de", j, " : ", comptage[j-a])
22
	#for j in range(b-a+1)
23
	#	print("nombre de", j+a, " : ", comptage[j])