Skip to content

Commit 68811b7

Browse files
committed
Refactor: to Portuguese for English.
1 parent e23f1d9 commit 68811b7

File tree

8 files changed

+8
-9
lines changed

8 files changed

+8
-9
lines changed

ex051.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Develop a program that reads the first term and the ratio of an AP. At the end, show the first 10 terms
1+
#51-Develop a program that reads the first term and the ratio of an AP. At the end, show the first 10 terms
22
# of this progression.
33
first = int(input('First term:'))
44
ratio = int(input('Ratio:'))

ex052.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
2-
# Write a program that reads an integer and tells whether or not it is a prime number.
1+
#52- Write a program that reads an integer and tells whether or not it is a prime number.
32
number = int(input('Enter a integer number:'))
43
tot = 0
54
for c in range(1, number, +1):

ex053.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Create a program that reads any sentence and says if it is a palindrome, disregarding spaces. Examples of
1+
#53- Create a program that reads any sentence and says if it is a palindrome, disregarding spaces. Examples of
22
# palindromes:
33
# AFTER THE SOUP, THE BALCONY OF THE HOUSE, THE TOWER OF DEFEAT, THE WOLF LOVES THE CAKE, THEY WROTE DOWN THE DATE
44
# OF THE MARATHON.

ex054.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Crie um programa que leia o ano de nascimento de sete pessoas. No final, mostre quantas pessoas ainda não atingiram a
1+
#54- Crie um programa que leia o ano de nascimento de sete pessoas. No final, mostre quantas pessoas ainda não atingiram a
22
# maioridade e quantas já são maiores.
33
from datetime import date
44
atual = date.today().year

ex055.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Faça um programa que leia o peso de cinco pessoas. No final, mostre qual foi o maior e o menor peso lidos.
1+
#55-Faça um programa que leia o peso de cinco pessoas. No final, mostre qual foi o maior e o menor peso lidos.
22
maior = 0
33
menor = 0
44
for p in range(1, 6):

ex056.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Desenvolva um programa que leia o nome, idade e sexo de 4 pessoas. No final do programa, mostre: a média de idade
1+
#56-Desenvolva um programa que leia o nome, idade e sexo de 4 pessoas. No final do programa, mostre: a média de idade
22
#do grupo, qual é o nome do homem mais velho e quantas mulheres têm menos de 20 anos.
33
soma_idade = 0
44
media_idade = 0

ex057.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Make a program that reads a person's gender, but only accepts the values ​​'M' or 'F'. If it's wrong, ask
1+
#57- Make a program that reads a person's gender, but only accepts the values ​​'M' or 'F'. If it's wrong, ask
22
# typing again until you have a correct value.
33
gender = str(input('What is your gender?[F/M]:')).strip().upper()[0]
44
while gender not in 'MmFf':

ex058.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Improve the challenge 28 game where the computer will “think” of a number between 0 and 10. But now the player will
1+
#58- Improve the challenge 28 game where the computer will “think” of a number between 0 and 10. But now the player will
22
#try to guess until you get it right, showing at the end how many guesses it took to win.
33
from random import randint
44
computer = randint(0,10)

0 commit comments

Comments
 (0)