Skip to content

Commit 32cc05c

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

File tree

9 files changed

+30
-36
lines changed

9 files changed

+30
-36
lines changed
-416 Bytes
Binary file not shown.

calendar.py

Lines changed: 0 additions & 6 deletions
This file was deleted.

ex001.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Crie um programa que escreva "Olá, mundo!" na tela.
2-
print('\033[1;32;40m Olá, mundo!\033[m')
1+
# Create a program that writes "Hello world!" on the screen.
2+
print('\033[1;32;40m Hello, world!\033[m')

ex002.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Crie um programa que pergunte o nome do usuário e escreva uma mensagem de boas vindas.
2-
nome = input('Digite seu nome:')
3-
print(f'Muito prazer em te conhecer, {nome}!')
1+
# Create a program that asks for the user's name and writes a welcome message.
2+
name = input('What is your name:')
3+
print(f'Nice meet you, {name}!')

ex003.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Crie um programa que leia dois números e mostre a soma entre eles.
2-
n1 = int(input('Digite um valor:'))
3-
n2 = int(input('Digite outro valor:'))
4-
print(f'A soma de {n1} + {n2} é igual a {n1+n2}.')
1+
# Create a program that reads two numbers and displays the sum between them.
2+
first_number = int(input('Enter a number:'))
3+
second_number = int(input('Enter another number:'))
4+
print(f'The sum of {first_number} + {second_number} is equal to {first_number + second_number}.')

ex004.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# Faça um programa que leia algo pelo teclado e mostre na tela o seu tipo primitivo e todas as
2-
# informações possíveis sobre ele.
3-
a = input('Digite algo:')
4-
print('O tipo primitivo desse valor é:', type(a))
5-
print('É alfabetico?', a.isalpha())
6-
print('É numerico?', a.isalnum())
7-
print('Só tem espaços?', a.isspace())
8-
print('É alfanumerico?', a.isalnum())
9-
print('Está em maiúsculo?', a.isupper())
10-
print('Esta em minúsculo?', a.islower())
11-
print('Esta só com a primeira letra em maiúsculo?', a.istitle())
1+
# Write a program that reads something from the keyboard and shows its primitive type and all the
2+
# possible information about him.
3+
value = input('Type something:')
4+
print('The primitive type of this value is:', type(value))
5+
print('Is alphabetical?', value.isalpha())
6+
print('Is a number?', value.isalnum())
7+
print('There are only spaces?', value.isspace())
8+
print('Is alphanumeric?', value.isalnum())
9+
print('Is upper?', value.isupper())
10+
print('is lower?', value.islower())
11+
print('Only the first letter is capitalized?', value.istitle())

ex005.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Faça um programa que leia um número inteiro e mostre na tela o seu sucessor e seu antecessor.
2-
n = int(input('Digite um número:'.))
3-
print(f'Se o número escolhido foi \033[35m{n}\033[m, seu antecessor é \033[31m{(n-1)}\033[m e seu sucessor é \033[32m{(n+1)}\033[m.')
1+
# Write a program that reads an integer and displays its successor and predecessor on the screen.
2+
number = int(input('Enter a number:'))
3+
print(f' If the number is \033[35m{number}\033[m,its predecessor is \033[31m{(number-1)}\033[m and his successor is \033[32m{(number+1)}\033[m.')

ex006.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Crie um algoritmo que leia um número e mostre o seu dobro, triplo e raíz quadrada.
2-
n = int(input('Digite um número:'.))
3-
print(f' Se o número escolhido foi {n},\n seu dobro será {n*2},\n seu triplo será {n*3}\n e sua raiz quadrada será {n**0.5}.')
1+
# Create an algorithm that reads a number and shows its double, triple and square root.
2+
number = int(input('Enter a number:'))
3+
print(f' If the number is {number},\n your double will be {number*2},\n your triple will be {number*3}\n and its square root will be {number**0.5}.')

ex007.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Desenvolva um programa que leia as duas notas de um aluno, calcule e mostre a sua média.
2-
n1 = float(input('Digite a primeira nota:'))
3-
n2 = float(input('Digite a segunda nota:'))
4-
print(f'Se sua primeia nota foi {n1} e sua segunda nota foi {n2}.\n Logo a sua média será {(n1+n2)/2}.')
1+
# Develop a program that reads a student's two grades, calculates and displays their average.
2+
first_note = float(input('Enter your first note:'))
3+
second_note = float(input('Enter your second note:'))
4+
print(f' If your first note is {first_note} and your second note is {second_note}.\n You avarege will be {(first_note+second_note)/2}.')

0 commit comments

Comments
 (0)