Skip to content

Commit b85b97c

Browse files
committed
Refactor: to Portuguese for English.
1 parent 6b50eea commit b85b97c

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

ex006.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Create an algorithm that reads a number and shows its double, triple and square root.
1+
#06- Create an algorithm that reads a number and shows its double, triple and square root.
22
number = int(input('Enter a number:'))
33
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Develop a program that reads a student's two grades, calculates and displays their average.
1+
#07- Develop a program that reads a student's two grades, calculates and displays their average.
22
first_note = float(input('Enter your first note:'))
33
second_note = float(input('Enter your second note:'))
44
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}.')

ex008.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 a value in meters and displays it converted into centimeters and millimeters.
1+
#08- Write a program that reads a value in meters and displays it converted into centimeters and millimeters.
22
meter = int(input('Enter a value in meters:'))
33
print(f'''If this value is {meter}, converting it:
44
{meter/1000} km,

ex009.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 any integer and displays its multiplication table on the screen.
1+
#09- Write a program that reads any integer and displays its multiplication table on the screen.
22
number = int(input('Enter a value:'))
33
print('-=' * 20)
44
print('Analyzing the reported value...')

ex010.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 how much money a person has in their wallet and shows how many dollars they can buy.
1+
#10- Create a program that reads how much money a person has in their wallet and shows how many dollars they can buy.
22
# Considering US$1.00 = R$5.45
33
real = float(input('How much many do you have in R$:'))
44
dollar = real/5.45

ex011.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 width and height of a wall in meters, calculates the amount of paint needed to
1+
#11- Write a program that reads the width and height of a wall in meters, calculates the amount of paint needed to
22
# paint it, knowing that each liter of paint paints an area of 2m².
33
area_q = float(input('Enter the height in meters of the wall you want to paint:'))
44
width = float(input('Now enter the width in meters of the same:'))

ex012.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Create an algorithm that reads the price of a product and shows its new price with a 15% discount
1+
#12- Create an algorithm that reads the price of a product and shows its new price with a 15% discount
22
product = float(input('Enter a price of a product R$:'))
33
print('...Calculating the discount...')
44
discount = product - (product * 0.15)

ex013.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 an employee's salary and shows his new salary with a 15% increase.
1+
#13- Make a program that reads an employee's salary and shows his new salary with a 15% increase.
22
salary = float(input('Enter your salary in R$:'))
33
print('Calculating you new salary with a 15% increase...')
44
increase = salary + (salary * 0.15)

ex014.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Write a program that converts a temperature entered in degrees Celsius to degrees Fahrenheit.
1+
#14 Write a program that converts a temperature entered in degrees Celsius to degrees Fahrenheit.
22
celsius = int(input('Enter a temperature in Celsius:'))
33
fahrenheit = ( celsius * 1.8) + 32
44
print(f'If the temperature local is {celsius}°C converting it will be {fahrenheit}°F.')

ex015.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 the number of km traveled by a rented car and the number of days for which
1+
#15- Write a program that asks the number of km traveled by a rented car and the number of days for which
22
# it was rented. Calculate the price to pay, knowing that the car costs R$60 per day and R$0.15 per km driven.
33
km = int(input(' Enter how many Km you have driven the car:'))
44
day = int(input('How many days did you keep the car:'))

0 commit comments

Comments
 (0)