Skip to content

Commit feccd9c

Browse files
committed
updated
from portuguese to english
1 parent 32cc05c commit feccd9c

File tree

3 files changed

+27
-27
lines changed

3 files changed

+27
-27
lines changed

ex008.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# Escreva um programa que leia um valor em metros e o exiba convertido em centímetro e milímetros.
2-
m = int(input('Digite um valor em metros:'))
3-
print(f'''Se o valor é {m}, convertendo ele:
4-
{m/1000} km,
5-
{m/100} Hm,
6-
{m/10} Dam,
7-
{m*10} Dm,
8-
{m*100} Cm,
9-
{m*1000} Mm.''')
1+
# Write a program that reads a value in meters and displays it converted into centimeters and millimeters.
2+
meter = int(input('Enter a value in meters:'))
3+
print(f'''If this value is {meter}, converting it:
4+
{meter/1000} km,
5+
{meter/100} Hm,
6+
{meter/10} Dam,
7+
{meter*10} Dm,
8+
{meter*100} Cm,
9+
{meter*1000} Mm.''')

ex009.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# Faça um programa que leia um número inteiro qualquer e mostre na tela a sua tabuada.
2-
n = int(input('Digite um valor:'))
1+
# Write a program that reads any integer and displays its multiplication table on the screen.
2+
number = int(input('Enter a value:'))
33
print('-=' * 20)
4-
print('Analisando o valor informado...')
4+
print('Analyzing the reported value...')
55
print('-=' * 20)
6-
print('Sua tabuada será:')
7-
print('{} x 1 = {}.'.format(n, n*1))
8-
print('{} x 2 = {}.'.format(n, n*2))
9-
print('{} x 3 = {}.'.format(n, n*3))
10-
print('{} x 4 = {}.'.format(n, n*4))
11-
print('{} x 5 = {}.'.format(n, n*5))
12-
print('{} x 6 = {}.'.format(n, n*6))
13-
print('{} x 7 = {}.'.format(n, n*7))
14-
print('{} x 8 = {}.'.format(n, n*8))
15-
print('{} x 9 = {}.'.format(n, n*9))
16-
print('{} x 10 = {}.'.format(n, n*10))
6+
print('Your multiplication table will be:')
7+
print('{} x 1 = {}.'.format(number, number*1))
8+
print('{} x 2 = {}.'.format(number, number*2))
9+
print('{} x 3 = {}.'.format(number, number*3))
10+
print('{} x 4 = {}.'.format(number, number*4))
11+
print('{} x 5 = {}.'.format(number, number*5))
12+
print('{} x 6 = {}.'.format(number, number*6))
13+
print('{} x 7 = {}.'.format(number, number*7))
14+
print('{} x 8 = {}.'.format(number, number*8))
15+
print('{} x 9 = {}.'.format(number, number*9))
16+
print('{} x 10 = {}.'.format(number, number*10))

ex010.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Crie um programa que leia quanto dinheiro uma pessoa tem na carteira e mostre quantos dólares ela pode comprar.
2-
# Considerando US$ 1,00 = R$5.45
3-
real = float(input('Quanto dinheiro você tem na sua carteira em R$:'))
1+
# Create a program that reads how much money a person has in their wallet and shows how many dollars they can buy.
2+
# Considering US$1.00 = R$5.45
3+
real = float(input('How much many do you have in R$:'))
44
dollar = real/5.45
5-
print('Logo se voc~e tem R${} você poderá comprar US${:.2f}.'.format(real, dollar))
5+
print('So if you have R${} you can buy US${:.2f}.'.format(real, dollar))

0 commit comments

Comments
 (0)