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

q2 done

parent df567495
No related branches found
No related tags found
No related merge requests found
path='sun.txt'
sun_txt=open(path,'r')
dic1={}
count=0
text=sun_txt.readlines()
a1=""
for i in text :
s=i.split()
for new in s :
if new=='/':
count+=1
if count==3 :
dic1[a1]+=1
else:
a1=a1+new
print(dic1)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment