Skip to content
Snippets Groups Projects
Commit 5a0a9895 authored by Pravesh's avatar Pravesh
Browse files

Upload New File

parent 22bd6515
No related branches found
No related tags found
No related merge requests found
Pipeline #152 canceled
path='/home/student4/sw.txt'
sw_file=open(path,'r')
d={}
occ=sw_file.readlines()
for i in occ:
if i in d:
d[i]+=1
else:
d[i]=1
print(d)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment