Code:

num1=[1,1,2,3,2,5,7,5];

dict1={};

for num in num1:

if num in dict1:

dict1[num]=dict1[num]+1;

else:

dict1[num]=1;

Python for beginners:

https://www.youtube.com/watch?v=egq7Z...

Telegram: https://t.me/clcoding_python https://www.facebook.com/pirawenpython/ https://www.facebook.com/groups/pirawenpython/

num1=[1,1,2,3,2,5,7,5];

dict1={};

for num in num1:

if num in dict1:

dict1[num]=dict1[num]+1;

else:

dict1[num]=1;

Python for beginners:

https://www.youtube.com/watch?v=egq7Z...

Telegram: https://t.me/clcoding_python https://www.facebook.com/pirawenpython/ https://www.facebook.com/groups/pirawenpython/

## 0 Comments:

## Post a Comment