Page 1 of 1

(python) your task is to read a file containing arithmetic instructions such as 3+4, 4-10, 7*11 each instruction contai

Posted: Mon May 02, 2022 11:39 am
by answerhappygod
Python Your Task Is To Read A File Containing Arithmetic Instructions Such As 3 4 4 10 7 11 Each Instruction Contai 1
Python Your Task Is To Read A File Containing Arithmetic Instructions Such As 3 4 4 10 7 11 Each Instruction Contai 1 (247.46 KiB) Viewed 47 times
(python) your task is to read a file containing arithmetic instructions such as 3+4, 4-10, 7*11 each instruction contains an integer, an operator (+,-, or *) and another integer. return a list of the results. if there is any error, raise an IOError.
... 3. Your task is to read a file containing arithmetic instructions such as 3 + 4 4 10 7 * 11 Each instruction contains an integer, an operator (+, -, or *), and another integer, Return a list of the results. If there is any error, raise an IOError. arithmetic.py 1 ## 2 # Reads a file containing arithmetic expressions and returns a list of 3 # the results after computing each expression. 4 # @param filename the file name 5 # @return a list of results 6 # 7 def read(filename) : 8 9 CodeCheck Reset