So I have to find the occurrences of each number in a list that the user is prompted to enter (numbers between 1 and 100), my idea was to count each number and then print it out if it occurs at all, and if it doesn't occur, do nothing. Any ideas to go off of this?
il1 = eval(input("Enter integers between 1 and 100 "))
lst1 = []
for i in range(0,len(il1)):
lst1.append(il1[i])
for i in range(0,len(lst1)):
for j in range(1,100+1):
if lst1.count([j]) != 0:
print(i,"occurs",lst1.count[j],"times")
else:
continue