python_exercises/thinkcspy/Chapter-2-Exercises/problem12.py

10 lines
No EOL
243 B
Python

# Runestone.Academy thinkcspy course
# Chapter 2
# Problem 12
fahrenheit = input('What is the temperature in degrees fahrenheit?')
F = int(fahrenheit)
C = (F - 32) * 5/9
print(F, 'degrees fahrenheit is equivalent to', C, 'degrees celcius.')