7. Write a python program to muliply all the values in a Python dictionary, dict_a as a Python dictionary showed in the following output.
The output is:
dict_a = {'Python_user': 2357, 'Python_download_times':1988}
Expected Answer:
The total download number of Python Installation time is 4685716
Sample Answer:
dict_a = {'Python_user': 2357, 'Python_download_times':1988} result=1 for key in dict_a: result=result * dict_a[key] print("The total download number of Python Installation time is", result)
More Exercises:
Python String ExercisesMore Numpy Exercises:
Numpy String ExercisesMore Pandas Exercises:
Pandas Series ExercisesMore Tutorials:
Python Installation - Linux (Ubuntu)