Exercício 29 da lista de Expressões Aritméticas e Variáveis em Python

danielamaksoud
2,802 views

Open Source Your Knowledge, Become a Contributor

Technology knowledge has to be shared and made accessible for free. Join the movement.

Create Content

Welcome!

This Python template lets you get started quickly with a simple one-page playground.

compra_inicial = 8*2.2 + 5*1.6;
compra_final = 8*(2.2+0.1*2.2) + 5*(1.6-1.6*0.05);
percentual = (compra_final-compra_inicial)/compra_inicial;
print("O aumento percentual foi de", percentual*100, "%");
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Advanced usage

If you want a more complex example (external libraries, viewers...), use the Advanced Python template

Open Source Your Knowledge: become a Contributor and help others learn. Create New Content