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 celsius to fahrenheit in Python

2 Answers

0 votes
celsius = 21

fahrenheit = (celsius * 1.8) + 32

print('%0.1f degree Celsius = %0.1f degree Fahrenheit' % (celsius, fahrenheit))
 

 
'''
run:
 
21.0 degree Celsius = 69.8 degree Fahrenheit
 
'''

 



answered May 30, 2017 by avibootz
edited Jul 20, 2022 by avibootz
0 votes
celsius = 31
      
fahrenheit = ((9.0 / 5.0) * celsius) + 32
      
print("Fahrenheit = " + str(fahrenheit))   
 
 
 
 
'''
run:
 
Fahrenheit = 87.80000000000001
 
'''

 



answered Jul 20, 2022 by avibootz

Related questions

1 answer 87 views
3 answers 249 views
1 answer 107 views
1 answer 97 views
1 answer 87 views
1 answer 87 views
...