I has that code. and ın my school, I didn't see dict, I mean {} can I convert that code to d = [], I mean list...
L = ["1", "2", "1"]
def frequency3(L):
d = {}
for i in L:
if i in d:
d[i] += 1
else:
d[i] = 0
return d
print(frequency3(L))
and I also want to make this code shows us just frequently number? so, output should be just "1" as above example.
I explain why you should my topic. but probably you didn't see. ın my code never being dict or built-in functions. I mean never ready code...