The most appropriate piece to develop a function for in the given code is:
c * 9/5 + 32
This line of code performs the temperature conversion from Celsius to Fahrenheit, and creating a function for this conversion would allow you to easily reuse the logic whenever you need to convert temperatures without rewriting the same formula multiple times.
You could define a function like this:
def celsius_to_fahrenheit(c):
return c * 9/5 + 32
Then, you could call this function with different values of c
:
print(celsius_to_fahrenheit(100))
print(celsius_to_fahrenheit(0))
print(celsius_to_fahrenheit(30))