Skip to content
Snippets Groups Projects
Commit eab9c20f authored by aslesha's avatar aslesha
Browse files

Delete cse16259_e3_1.py

parent c270cbf8
Branches
No related tags found
No related merge requests found
Pipeline #168 canceled
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();
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment