Computer Science, asked by palakg574, 3 months ago

.

list1=[2,3,3,2,5,3,2,5,1,1]

counts={}

ct=0

lst=[]

for num in list1:

if num not in lst:

lst.append(num)

counts[num]=0

ct=ct+1

counts[num]+=1

print(counts)

for key in counts.keys():

counts[key]=key*counts[key]

print(counts)​

Answers

Answered by KingD07
0

Answer:

1. 3,2s,  

Explanation:

Similar questions