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

files q2 done

parent b954f020
No related branches found
No related tags found
No related merge requests found
f=open("sun.txt","r")
content=f.readlines()
dict1={}
'''print(content)'''
if f.mode=="r":
for i in content:
s=[]
s=i.split('/')
if s[2] in dict1:
dict1[s[2]]+=1
else:
dict1[s[2]]=1
print(dict1)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment