Skip to content
Snippets Groups Projects
Commit 22bd6515 authored by Pravesh's avatar Pravesh
Browse files

File Q1

parents
Branches
No related tags found
No related merge requests found
Pipeline #150 canceled
file.py 0 → 100644
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