Contact: aviboots(AT)netvision.net.il
39,851 questions
51,772 answers
573 users
dict = {'a': 4, 'b': 6, 'c': 2, 'd': 8, 'e': 3} number = 3 dict.update((key, value * number) for key, value in dict.items()) print(dict) ''' run: {'a': 12, 'b': 18, 'c': 6, 'd': 24, 'e': 9} '''