Advertisement
ancestor_tunji

Untitled

Jan 28th, 2020
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. #Assignment 1
  2. # Question 5
  3. #program that asks users for temperature in Fahrenheit and then convert to Celcius
  4. print('conversion of temperature from Fahrenheit to Celcius')
  5. x = float(input("enter temperature value in Fahrenheit "))
  6. t = x - 32
  7. t *= (5 / 9)
  8. print(t,"Celcius")
  9. print(x,"Fahrenheit is equivalent to",t,"Celsius")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement