Create a function that converts Celsius degrees to Fahrenheit. The formula to convert Celsius to Fahrenheit is F = C × 9/5 + 32.
Here goes the code:
>>> def cel_to_far(celsius): ... fahrenheit = celsius *9/5+32 ... return fahrenheit ... >>> print(cel_to_far(10)) 50.0
That’s it. here you go!
TRBS083 www.mail1.ru 10:23 PM on November 19, 2021 Permalink |
TRBS083 http://www.mail1.ru
LikeLike