Creating a home painting calculator

draconith

GioPort0

Posted on April 4, 2024

Creating a home painting calculator

Hello, I'm developing a calculator that calculates the area of ​​a wall and displays the amount of paint needed to paint it. A simple exercise for beginners like me.
I want to implement the same code in an interface using the tkinter module.
I would like some tips

`l=float(input('Digite a largura da parede: '))
a=float(input('Digite a altura da parede: '))

area=l*a

print('A area de uma parede de {}m de largura, e {}m de altura é igual a {}m²'.format(l,a,area))
tinta=area/15
print('Você precisará de {}l de tinta para pintar a parede'.format(tinta))`

this my code :D

💖 💪 🙅 🚩
draconith
GioPort0

Posted on April 4, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related