Question: PYTHON PROGRAMMING: Write a simple calculator program that performs arithmetic operation on 2 numbers. The program reads from a notepad file (e.g. data.txt) Each line
PYTHON PROGRAMMING:

Write a simple calculator program that performs arithmetic operation on 2 numbers. The program reads from a notepad file (e.g. data.txt) Each line in the file consists of 3 values, separated by white spaces, in the following format: float operator float where float is any decimal number and operator is either +,-, L,' or %. Suppose, the data.txt contains the line: 457.3 + 11.9 Your program should process and send the corresponding output line to an output file 457.3 11.9 469.2 Notepad (data.txt): 457.311.9 107-59.1 49.5 2.43 69 % 5 81/7
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
