I am making an interface with buttons in Python, but after typing the account it gave error ... I tried to redo and it is giving indentation error. What do I need is the code correct?
Follow 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"