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

danielamaksoud
888 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.

massa = 95;
g = 10; # aceleracao da gravidade
a = 0.5; # aceleracao do elevador
pr = massa*g;
pm = massa*a + massa*g;
percentual = (pm-pr)/pr;
print("A diferenca percentual e igual a", 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