Exercício 23 da lista de Expressões Aritméticas e Variáveis em Python
Open Source Your Knowledge, Become a Contributor
Technology knowledge has to be shared and made accessible for free. Join the movement.
Welcome!
This Python template lets you get started quickly with a simple one-page playground.
1
2
3
4
5
6
7
ma = (10+12+15+17)/4;
md = (10+12+15+17+16)/5;
percentual = (md-ma)/ma;
print("A variacao percentual e igual a", percentual*100, "%");
Enter to Rename, Shift+Enter to Preview
Advanced usage
If you want a more complex example (external libraries, viewers...), use the Advanced Python template
Suggested playgrounds
Open Source Your Knowledge: become a Contributor and help others learn. Create New Content