Challenge: Create Two Dictionaries and Compute the Total Bill
Write a program to create two dictionaries and compute the total bill using the values from these dictionaries.
We'll cover the following
Create two dictionaries—one containing grocery items and their prices, and another containing grocery items and the quantity purchased. By using the values from these two dictionaries, compute the total bill:
- Input: Two dictionaries—one containing grocery items and their prices, and another containing grocery items and the quantity purchased.
- Output: Compute the total bill and print on console.
Get hands-on with 1400+ tech skills courses.