2
I’m making an interface with buttons in Python, but after writing the account was error... I tried to redo and is giving indentation error. What I need is the code is correct?
Follows the code!
try:
DEMANDA=float(self.DEMANDA.get())
CUSTOAQUISAO=float(self.CUSTOAQUISAO.get())
CUSTOUNITARIO =float(self.CUSTOUNITARIO.get())
TAXAARMAZENAGEM = float(self.FRETE.get())
Qe=(math.sqrt((2*(DEMANDA*CUSTOAQUISAO)/(CUSTOUNITARIO/TAXAARMAZENAGEM)))
s="O Lote Econômico é composto por peças "
s=s+str(Qe)
print (Qe)
except:
s="Erro"
Hi Gabriel, still giving the error message, can not calculate... I fixed the identation and still gives error.... I do not know what else to do
– Kelly Felix