Skip to content

Commit cd219c9

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

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

ex016.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 real number from the keyboard and displays its entire portion on the screen.
1+
#16- Create a program that reads any real number from the keyboard and displays its entire portion on the screen.
22
import math
33
number = float(input('Enter a value:'))
44
print('The value typed was {} and its entire part is {}.'.format(number, math.trunc(number)))

ex017.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 length of the opposite and adjacent sides of a right triangle. Calculate and
1+
#17- Write a program that reads the length of the opposite and adjacent sides of a right triangle. Calculate and
22
# show the length of the hypotenuse.
33
import math
44
opposite_side = float(input('Enter the value of opposite side of triangle:'))

ex018.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 angle and displays on the screen the value of the sine, cosine and tangent of that angle.
1+
#18- Write a program that reads any angle and displays on the screen the value of the sine, cosine and tangent of that angle.
22
import math
33
angle = float(input('Enter a value of an angle:'))
44
sine = math.sin(math.radians(angle))

ex019.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# A teacher wants to draw one of his four students to erase the board. Make a program that helps him, reading the
1+
#19- A teacher wants to draw one of his four students to erase the board. Make a program that helps him, reading the
22
# name of the students and writing the name of the chosen one on the screen.
33
import random
44
name_one = str(input('First students name:'))

ex020.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# The same teacher from challenge 19 wants to draw the order in which the students' work will be presented. Make a program that
1+
#20- The same teacher from challenge 19 wants to draw the order in which the students' work will be presented. Make a program that
22
# read the names of the four students and show the order drawn.
33
import random
44
first_name = str(input('First students name:'.strip()))

ex021.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 opens and plays audio from an MP3 file.
1+
#21- Write a Python program that opens and plays audio from an MP3 file.
22
import pygame
33
pygame.init()
44
pygame.mixer.init()

ex023.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 number from 0 to 9999 and displays each of the separate digits on the screen.
1+
#23- Write a program that reads a number from 0 to 9999 and displays each of the separate digits on the screen.
22
number = int(input('Informe um número:'))
33
unit = number // 1 % 10
44
ten = number // 10 % 10

0 commit comments

Comments
 (0)