Skip to content

Commit f026ca8

Browse files
committed
Refactor: to Portuguese for English.
1 parent 6750a97 commit f026ca8

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

ex033.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Write a program that reads three numbers and shows which is the largest and which is the smallest.
1+
#33- Write a program that reads three numbers and shows which is the largest and which is the smallest.
22
first_value = int(input('Enter the first value:'))
33
second_value = int(input('Enter the second value:'))
44
third_value = int(input('Enter the tirth value:'))

ex034.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Write a program that asks for an employee's salary and calculates the amount of his raise. For salaries
1+
#34- Write a program that asks for an employee's salary and calculates the amount of his raise. For salaries
22
# above R$1,250.00, calculate an increase of 10% for those below or equal, the increase is 15%
33
salary = float(input('What is your salary in R$?'))
44
if salary <= 1250:

ex035.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 length of three straight lines and tells the user whether or not they can form a
1+
#35- Develop a program that reads the length of three straight lines and tells the user whether or not they can form a
22
# triangle.
33
print('-=-' * 20)
44
print(' Triangle analyzer...')

ex036.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Write a program to approve a bank loan for the purchase of a house. Ask the buyer for the value of the house, the
1+
#36-Write a program to approve a bank loan for the purchase of a house. Ask the buyer for the value of the house, the
22
# buyer's salary and in how many years he will pay it off. The monthly payment cannot exceed 30% of the salary or
33
# else the loan will be denied.
44

ex037.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Write a Python program that reads any integer and asks the user to choose the conversion base: 1 for binary, 2 for
1+
#37-Write a Python program that reads any integer and asks the user to choose the conversion base: 1 for binary, 2 for
22
# octal, and 3 for hexadecimal
33
number= int(input('Enter an integer:'))
44
print('''Choose one of the bases for conversion:

ex038.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Write a program that reads two integers and compares them, displaying a message on the screen:
1+
#38- Write a program that reads two integers and compares them, displaying a message on the screen:
22
# – The first value is greater
33
# – The second value is greater
44
# – There is no greater value, both are equal

ex039.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Write a program that reads the year of birth of a young person and informs, according to his age, whether he is
1+
#39- Write a program that reads the year of birth of a young person and informs, according to his age, whether he is
22
# still going to enlist in the military service, whether it is the exact time to enlist or if it is past the
33
# enlistment period. Your program should also show the time remaining or the time that has passed.
44
from datetime import date

ex040.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 two grades from a student and calculates their average, displaying a message at the end, according to the acquired media:
1+
#40- Create a program that reads two grades from a student and calculates their average, displaying a message at the end, according to the acquired media:
22
# – Media below 5.0: FAILED
33
# – AVERAGE BETWEEN 5.0 and 6.9: RECOVERED
44
# – Media 7.0 or higher: PASSED

ex041.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#The National Swimming Confederation needs a program that reads an athlete's birth year and shows their
1+
#41-The National Swimming Confederation needs a program that reads an athlete's birth year and shows their
22
# category, according to age: – Up to 9 years old: child
33
#– Up to 14 years old: children's
44
#– Up to 19 years old: JUNIOR

0 commit comments

Comments
 (0)