-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resposta ao exercício 16 da lista passada pela Belisa na aula do dia … #24
base: main
Are you sure you want to change the base?
Conversation
quantidade_latas_exata = quantidade_m2 / 54 | ||
|
||
#Quantidade de latas necessárias com o valor arredondado para cima: | ||
quantidade_latas_arredondada = round(quantidade_latas_exata) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Round não obrigatoriamente arredonda para cima. Aqui recomendo usar o math.ceil :)
quantidade_m2 = float(metro2_informado_pelo_cliente) | ||
|
||
#Quantidade de latas necessárias como float: | ||
quantidade_latas_exata = quantidade_m2 / 54 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Não é errado usar 54, mas imagine em você mesma daqui dois meses olhando esse código. O que significa 54?
#que custam R$ 80,00. Informe ao usuário a quantidades de latas de tinta a serem compradas e o preço total. | ||
|
||
#Recepcionar o cliente: | ||
nome_cliente = input("Olá! É um prazer te ver aqui! Antes de continuarmos, qual o seu nome? ") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Arrasou na receptividade! hahahah
…12/08
Não consegui fazer o 17, socorro!