Take the temperature in degrees Celsius and convert it to Fahrenheit.
To convert degrees Celsius temperature to Fahrenheit, you have to multiply by 9 and divide by 5.
And then, add 32.
Think for a second...How will you multiply a variable by 9 and then divide by 5? and then add 32. Can you do it without looking at the solution?
celsius = float(input("Enter temperature in degrees Celsius: "))
fahrenheit = celsius*9/5+32
print("Temperature in Fahrenheit:", fahrenheit)
tags: programming-hero
python
python3
problem-solving
programming
coding-challenge
interview
learn-python
python-tutorial
programming-exercises
programming-challenges
programming-fundamentals
programming-contest
python-coding-challenges
python-problem-solving