From eab9c20f469b7ba5776b527238f638ad89c9b88b Mon Sep 17 00:00:00 2001 From: aslesha <cb.en.u4cse16259@cb.students.amrita.edu> Date: Wed, 19 Dec 2018 12:16:55 +0530 Subject: [PATCH] Delete cse16259_e3_1.py --- cse16259_e3_1.py | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 cse16259_e3_1.py diff --git a/cse16259_e3_1.py b/cse16259_e3_1.py deleted file mode 100644 index 85d80c2..0000000 --- a/cse16259_e3_1.py +++ /dev/null @@ -1,18 +0,0 @@ -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(); - - - - - -- GitLab