File tree Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 1- # Faça um programa que leia a largura e a altura de uma parede em metros, calcule a quantidade de tinta necessária para
2- # pintá-la, sabendo que cada litro de tinta pinta uma área de 2m².
3- area_q = float (input ('Digite a altura em metros da parede que deseja pintar :' ))
4- largura = float (input ('Agora digite a largura em metros da mesma :' ))
5- area = area_q * largura
6- litros = area / 2
7- print (f'Se você possui uma área de { area } m logo precisará de { litros } litros para pintá-la .' )
1+ # Write a program that reads the width and height of a wall in meters, calculates the amount of paint needed to
2+ # paint it, knowing that each liter of paint paints an area of 2m².
3+ area_q = float (input ('Enter the height in meters of the wall you want to paint :' ))
4+ width = float (input ('Now enter the width in meters of the same :' ))
5+ area = area_q * width
6+ liter = area / 2
7+ print (f'If you have an area of { area } m soon you will need { liter } liters to paint it .' )
Original file line number Diff line number Diff line change 1- # Faça um programa que leia o nome completo de uma pessoa, mostrando em seguida o primeiro e o último nome
2- # separadamente.
3- n = str (input ('Digite seu nome completo:' ))
4- nome = n .split ()
1+ # Faça um programa que leia o nome completo de uma pessoa, mostrando em seguida o primeiro e o último nome separadamente.
2+ dado = str (input ('Digite seu nome completo:' ))
3+ nome = dado .split ()
54print ('Muito prazer em te conhecer!' )
65print ('Seu primeio nome é {}.' .format (nome [0 ]))
76print ('Seu último nome é {}.' .format (nome [len (nome )- 1 ]))
You can’t perform that action at this time.
0 commit comments