Jul-17-2018, 01:19 PM
I have written If Else code which is suppose to only delete the item from the dictionary I have created if I enter 'y'. If I press 'n' the item is still deleted. Can anyone advise please.
if user_input == 'n': show_word() elif user_input =='y': print ('This entry has been removed, as you know the definition') del glossary[random_key] print (len(glossary))