Skip to content

Commit fa5a76d

Browse files
committed
updated
1 parent feccd9c commit fa5a76d

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

ex011.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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.')

ex027.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
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()
54
print('Muito prazer em te conhecer!')
65
print('Seu primeio nome é {}.'.format(nome[0]))
76
print('Seu último nome é {}.'.format(nome[len(nome)-1]))

0 commit comments

Comments
 (0)