Week 6 Python
You are going to enhance the prior assignment by doing the following1) Use list to create a menu2) Create a function the will return the results of the four operations in a dictionary allInOne(n1,n2)Sample output
1) Add two numbers
2) Mult two number
3) Divide
4) Scalc
5) all in one ..
6) …
res=allInOne(5,2)
The results will be return in this format;
res is dictionary {"add":7, "sub":3, "mult":10, "div":2.5)
from res, you are going to print
5 + 2 = 7
5 - 2 = 3
5 * 2 = 10
5 / 2 = 2.5
5 years ago 50
Answer(1)
Purchase the answer to view it
NOT RATED
- order_164905_456740.py
- order_164905_456741.py
other Questions(10)
- : Comment the Discussion (Class 502 Unit 2 Comment 1
- Research and Ethics in Psychology
- BUS 318 Organizational Behavior
- Module 02 Written Assignment 2 - Being a Minority
- if you want a down payyyyy ment before you do the work then do it text me
- this is a philosophy class
- Developing an Indepth Lesson Plan
- Option #1: Cost of Ending Inventory
- Week 2 A1
- Lin Discussion Week 9