Skip to content
Snippets Groups Projects
Commit b954f020 authored by Velaga Abijith's avatar Velaga Abijith
Browse files

files q1 done

parents
No related branches found
No related tags found
No related merge requests found
f=open("sw.txt","a+")
f1=open("content.txt","r")
for i in f1.readlines():
f.write(i)
dict={}
f2=open("sw.txt","r")
if f2.mode=="r":
content=f2.readlines()
print(content)
for i in content:
if i in dict:
dict[i]+=1
else:
dict[i]=1
print(dict)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment