Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Buy a domain name - Register cheap domain names from $0.99 - Namecheap

Scalable Hosting That Grows With You

Secure & Reliable Web Hosting, Free Domain, Free SSL, 1-Click WordPress Install, Expert 24/7 Support

Semrush - keyword research tool

Boost your online presence with premium web hosting and servers

Disclosure: My content contains affiliate links.

39,959 questions

51,901 answers

573 users

How to convert fahrenheit to celsius in Python

3 Answers

0 votes
f = 1.0

c = (f - 32) / 1.8

print("{0} fahrenheit = {1} celsius".format(round(f, 2), round(c, 2)))




'''
run:

1.0 fahrenheit = -17.22 celsius

'''

 



answered Feb 19, 2016 by avibootz
edited Jul 22, 2022 by avibootz
0 votes
f = 1.0

c = (f - 32) * (5.0 / 9.0)

print("{0} fahrenheit = {1} celsius".format(round(f, 2), round(c, 2)))




'''
run:

1.0 fahrenheit = -17.22 celsius

'''

 



answered Feb 19, 2016 by avibootz
edited Jul 22, 2022 by avibootz
0 votes
fahrenheit = 96
       
celsius = (fahrenheit - 32) * 5 / 9.0
       
print("Celsius = " + str(celsius))   
  
 
 
  
'''
run:
  
Celsius = 35.55555555555556
  
'''

 



answered Jul 22, 2022 by avibootz

Related questions

1 answer 87 views
2 answers 211 views
1 answer 107 views
1 answer 97 views
1 answer 87 views
1 answer 87 views
...