Skip to content
Snippets Groups Projects
Commit df567495 authored by D Vengatesh's avatar D Vengatesh
Browse files

files q1 done

parent 393ff878
Branches
No related tags found
No related merge requests found
path='sw.txt'
sample_txt=open(path,'r')
dic={}
text=sample_txt.readlines()
for i in text :
if i not in dic :
dic[i]=1
else :
dic[i]+=1
print(dic)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment