From 25979c93682a5267456f4702c8eba895ee916870 Mon Sep 17 00:00:00 2001 From: Malay Kumar <33093754+malay190@users.noreply.github.com> Date: Wed, 7 Oct 2020 16:32:11 +0530 Subject: [PATCH] Update assignmnt4.py --- assignment4/assignmnt4.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assignment4/assignmnt4.py b/assignment4/assignmnt4.py index 35aa10e..31c7eed 100644 --- a/assignment4/assignmnt4.py +++ b/assignment4/assignmnt4.py @@ -94,8 +94,8 @@ #q7 count the number of occurence of each letter in word MISSISSIPPI . store count of every letter with letter in a dictionary. -word = list("MISSISSIPPI") -print(word) +String = list("MISSISSIPPI") +print(string) d={} d['M']=word.count('M') d['I']=word.count('I')