Suppose there is a dictionary as shown below. data = {’email’:…
Question Answered step-by-step Suppose there is a dictionary as shown below. data = {’email’:… Suppose there is a dictionary as shown below.data = {’email’: [‘Click Win Prize’, ‘Click meeting setup’,’Prize free ‘,’Click prize’],’is_spam’: [‘yes’, ‘no’,’yes’,’yes’]}Write codes that allows the user to insert new data in the text file already containing the dictionary values.For example first the user inputs ‘Win win here ‘Then the user inputs ‘yes’ in another input if another data comes:New data: InputsWin win yesThe text file should look likeImage transcription textClick Win Prize yes Click meeting setup no Prize free yes Click prize yes Win win here yes Win win yes… Show moreAt the end convert the dictionary into an amended dictionary as shown below:data = {’email’: [‘Click Win Prize’, ‘Click meeting setup’,’Prize free ‘,’Click prize’,’Win win here ‘,’Win win’ ],’is_spam’: [‘yes’, ‘no’,’yes’,’yes’ ,’yes’,’yes’]}I should be able to use the dictionary later on. Computer Science Engineering & Technology Python Programming IT 3903 Share QuestionEmailCopy link Comments (0)


