diff --git a/lab3/cse16259_e3_1.py b/lab3/cse16259_e3_1.py
new file mode 100644
index 0000000000000000000000000000000000000000..85d80c2c552a58e167e46f3e8e6db4334141e9ac
--- /dev/null
+++ b/lab3/cse16259_e3_1.py
@@ -0,0 +1,18 @@
+fname = input("Enter the name of the file:")
+infile=open(fname,'a')
+infile.write("append the sentences:")
+infile = open(fname, 'r')
+wordcount={}
+lines = 0
+for word in infile.read().split():
+    if word not in wordcount:
+        wordcount[word] = 1
+    else:
+        wordcount[word] += 1
+print (word,wordcount)
+infile.close();
+
+
+
+
+