-3
I am having doubts to resolve this exercise. First, follow example of txt file.
5/2
500+20
200-20
20*10
I need to read this txt file and solve the equations in Python.
Follow the code I currently have.
arquivo = open("Calculadora lendo TXT.txt", 'r')
for linha in arquivo:
linha = linha.strip()
print(linha)
In my beginner’s logic, I believe I need to convert string
for INT
and how to identify signs of operations.
Cassio, you just asked this question... You’d better edit your previous question and improve it.
– fernandosavio
Does this Answer your Question? Import Txt file, read and solve python equations
– Jakson Fischer