Conteúdo do Curso
Introdução ao Python
Introdução ao Python
1. Primeiro Conhecimento
3. Declarações Condicionais
Reunindo Tudo
Tarefa
Swipe to start coding
- Print a title
"Shopping Receipt"
and a divider line (using-
) withprint()
. - Print the price for the first item:
- It is priced per weight at $162 per unit.
- The customer bought 0.35 of it.
- Calculate and print the total price for this item.
- Print the price for the second item:
- Originally $25, but comes with a discount of $3.67.
- Calculate and print the final price after the discount.
- Print the subtotal, tax (8%), and total price using
print()
.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 1. Capítulo 5
Reunindo Tudo
Tarefa
Swipe to start coding
- Print a title
"Shopping Receipt"
and a divider line (using-
) withprint()
. - Print the price for the first item:
- It is priced per weight at $162 per unit.
- The customer bought 0.35 of it.
- Calculate and print the total price for this item.
- Print the price for the second item:
- Originally $25, but comes with a discount of $3.67.
- Calculate and print the final price after the discount.
- Print the subtotal, tax (8%), and total price using
print()
.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 1. Capítulo 5