Loading [Contrib]/a11y/accessibility-menu.js
Back
Close

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

danielamaksoud
1,508 views

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

Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io
codingame x discord
Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
JOIN US ON DISCORD
Online Participants