From f982b63b4b8c427c47e457ed0242f959ec0bee9d Mon Sep 17 00:00:00 2001
From: D Vengatesh <cb.en.u4cse16261@cb.students.amrita.edu>
Date: Wed, 19 Dec 2018 13:00:04 +0530
Subject: [PATCH] q2 done

---
 CSE16261_Ex03_02_.py | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 CSE16261_Ex03_02_.py

diff --git a/CSE16261_Ex03_02_.py b/CSE16261_Ex03_02_.py
new file mode 100644
index 0000000..8c9d0b9
--- /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)
-- 
GitLab