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

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

preco_pacote_sem_taxas_de_embarque = 4200-120; # preco do pacote de viagens sem as taxas de embarque nos aeroportos
preco_pacote_sem_taxas_de_embarque = preco_pacote_sem_taxas_de_embarque - preco_pacote_sem_taxas_de_embarque*0.1; # preco com desconto de 10%
preco_total = preco_pacote_sem_taxas_de_embarque + 120; # preco do pacote com desconto + taxas de embarque
print("Francisco pagou R$", preco_total, "pelo pacote de viagem.");
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