Python Task (Happy Weekend)
Hello Dear! Here is a little weekend task for us in python.
Consider the data structure below:
menu = {'meal_1': 'Spaghetti',
'meal_2': 'Fries',
'meal_3': 'Cheeseburger',
'meal_4': 'Lasagna',
'meal_5': 'Soup',
'meal_6': ['Pancakes', 'Ice-cream', 'Tiramisu']}
1] Create a new dictionary that contains the first five meals as keys and assign the following five values as prices (in dollars): 10, 5, 8, 12, 5. Start by Price_list = {}.
2] Create a JSON in which the values of the keys of menu dictionary have a dictionary showing the recipe for the values.
Answer
Kindly write your codes in the comment section.
To Win
After commenting your answer in the comment, then do the following:
1] Subscribe to this blog (hamplustech.blogspot.com)
2] Share the blog to at least three social media platform
3] Like the post.
4] For future win, after winning kindly come back and comment your experience. Then active on the blog.
@HamplusHub
@HamplusTech
#HamplusTech
I Love you but I love Python more!!! Lolzzz
Consider the data structure below:
menu = {'meal_1': 'Spaghetti',
'meal_2': 'Fries',
'meal_3': 'Cheeseburger',
'meal_4': 'Lasagna',
'meal_5': 'Soup',
'meal_6': ['Pancakes', 'Ice-cream', 'Tiramisu']}
1] Create a new dictionary that contains the first five meals as keys and assign the following five values as prices (in dollars): 10, 5, 8, 12, 5. Start by Price_list = {}.
2] Create a JSON in which the values of the keys of menu dictionary have a dictionary showing the recipe for the values.
Answer
Kindly write your codes in the comment section.
To Win
After commenting your answer in the comment, then do the following:
1] Subscribe to this blog (hamplustech.blogspot.com)
2] Share the blog to at least three social media platform
3] Like the post.
4] For future win, after winning kindly come back and comment your experience. Then active on the blog.
@HamplusHub
@HamplusTech
#HamplusTech
I Love you but I love Python more!!! Lolzzz

Comments
Post a Comment