diff --git a/CSE16261_Ex03_02_.py b/CSE16261_Ex03_02_.py new file mode 100644 index 0000000000000000000000000000000000000000..8c9d0b96842a9d0438f02ca1162e3188ee33cf7b --- /dev/null +++ b/CSE16261_Ex03_02_.py @@ -0,0 +1,20 @@ +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)