Demo entry 6770509

question 1

   

Submitted by anonymous on Nov 13, 2018 at 18:07
Language: Python. Code size: 394 Bytes.

# Iara Modigliani Caviglia 
# ID 332665231

# Exercise 4

# Question 1
# Write a function that receives as input a temperature in Celsius, transforms it to Fahrenheit, and returns the result

def temp_fahrenheit():
    temp_celsius = float(input('write the temperature in celsius: '))
    fahrenheit = (temp_celsius * 1.8 + 32)
    return fahrenheit
print(temp_fahrenheit())

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).