Question: Python Please! Q1: Write a calculator program that accepts commands from command line. The program has the following function when executed: python Calculator.py * 5
Python Please!
Q1:
Write a calculator program that accepts commands from command line. The program has the following function when executed:
python Calculator.py * 5 4 will print out 5*4=20
python Calculator.py + 5 4 will print out 5+4=9
python Calculator.py - 5 4 will print out 5-4=1
python Calculator.py / 5 4 will print out 5/4=1
python Calculator.py / 5 0 will print out error: denominator cannot be 0.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
