def get_preheating_instructions(fahrenheit: float) -> str: """Return instructions for preheating the oven in fahrenheit degrees and Celsius degrees. >>> get_preheating_instructions(500) 'Preheat oveb to 500 degrees F (260.0 degrees c).' """ cels = str(temperature_program.convert_to_celsius(fahrenheit)) fahr = str(fahrenheit) return 'Preheat oven to ' + fahr + ' degrees F (' + cels + ' degrees C).'
def get_preheating_instructions(fahrenheit: float) -> str: """오븐의 예열 온도를 화씨와 섭씨로 알려준다. >>> get_preheating_instructions(500) 'Preheat oven to 500 degrees F (260.0 degrees C).' """ cels = str(temperature_program.convert_to_celsius(fahrenheit)) fahr = str(fahrenheit) return '오븐을 ' + fahr + ' 화씨 ('+ cels +' 섭씨)로 예열하세요.'
def get_preheating_instructions(fahrenheit): '''(float) -> str Return instructions for preheating the oven in fahrenheit and celsius degrees >>> get_preheating_instructions(500) 'Preheat the oven to 500 degrees F (260.0 degrees C).' ''' cels = tp.convert_to_celsius(fahrenheit) fahr = fahrenheit return f'Preheat oven to {fahrenheit} degrees F ({cels} degrees C).'
def get_preheating_instructions(fahrenheit): """ (number) -> string Return instructions for preheating the oven in fahreneheit degrees and Celsius degrees. >>> get_preheating_instructions(500) 'Preheat oven to 500 degrees F (260.0 degrees C).' """ cels = str(temperature_program.convert_to_celsius(fahrenheit)) fahr = str(fahrenheit) return 'Preheat oven to ' + fahr + ' degrees F ('+ cels +' degrees C).'
# -*- coding: utf-8 -*- """ Created on Mon Feb 15 10:39:16 2021 @author: le279259 """ import temperature_program def get_preheating_instructions(fahrenheit: float) -> str: """Return instructions for preheating the oven in fahreneheit degrees and Celsius degrees. get_preheating_instructions(500) 'Preheat oven to 500 degrees F (260.0 degrees C).' """ cels = str(temperature_program.convert_to_celsius(fahrenheit)) fahr = str(fahrenheit) return 'Preheat oven to ' + fahr + ' degrees F ('+ cels +' degrees C).' if __name__ == '__main__': fahrenheit = float(input('Enter the temperature in degrees Fahrenheit: ')) celsius = temperature_program.convert_to_celsius(fahrenheit) if temperature_program.above_freezing(celsius): print('It is above freezing.') else: print('It is below freezing.')
def get_preheating_instruction(fahrenheit): cels = str(temperature_program.convert_to_celsius(fahrenheit)) fahr = str(fahrenheit) return 'Preheat oven to ' + fahr + ' degrees F ('+ cels +' degrees C).'
def get_preheating_instruction(fahrenheit): cels = str(temperature_program.convert_to_celsius(fahrenheit)) fahr = str(fahrenheit) return 'Preheat oven to ' + fahr + ' degrees F (' + cels + ' degrees C).'
def get_preheating_instructions(fahrenheit: float) -> str: cels = str(temperature_program.convert_to_celsius(fahrenheit)) fahr = str(fahrenheit) return "Preheat ove to " + fahr + " degrees F (" + cels + " degrees C)."