I am running into trouble with my current program. I have created the template of how I want my program to run. I don't run into any problems. One tweak I would like to make to it is being able to remove a key from my dictionary once the value is recognized as 0.
I am looking for help as I am currently stuck at a wall. I am trying to manipulate my dictionary in order to get rid of any keys with a value of 0. I have tried a couple different notations but I am struggling to find an answer to my question.
Here is my code
import win32com.client
import time
#Mail information
print("Thanks for using the Mail Count Email Generator!")
time.sleep(2)
print("Please enter the mail count for each bundle.")
time.sleep(2)
#List and Dictionaries
mail = [ "PT", "MVR", "MVT", "TABC", "COIN_OP", "COMPLEX", "PRIORITY PAYMENTS"]
bundle_result = {}
mail_today = {}
final_list = list()
#User input of the Bundles
for bundle in mail:
bundle_value = input("How many {}? ".format(bundle))
bundle_result.update({bundle: bundle_value})