Skip to content

Commit b380300

Browse files
committed
doc: add comments
Exercises with commented arithmetic operators. Temperature Converter.
1 parent 7320554 commit b380300

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ex014.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
#Temperature Converter
12
#14 Write a program that converts a temperature entered in degrees Celsius to degrees Fahrenheit.
23
celsius = int(input('Enter a temperature in Celsius:'))
34
fahrenheit = ( celsius * 1.8) + 32
45
print(f'If the temperature local is {celsius}°C converting it will be {fahrenheit}°F.')
56

7+
#Conversor de Temperaturas.
68
#14: Escreva um programa que converta uma temperatura digitando em graus Celsius e converta para graus Fahrenheit.
79
'''celsius = int(input('Digite o valor da temperatura em celsius:'))
810
print(f'Convertendo {celsius}ºC para Fahrenheit ficará: {(celsius * 1.8) + 32}ºF.')'''

0 commit comments

Comments
 (0)