top of page
learn_data_science.jpg

Data Scientist Program

 

Free Online Data Science Training for Complete Beginners.
 


No prior coding knowledge required!

Writer's pictureRubash Mali

Temperature Convertor

Two frequently used temperature scales are degree Celsius and degree Kelvin. In this blog a simple python application is built that converts temperature in Celsius to that in Kelvin or vice versa.


The general formula for this conversion are as follow:


Firstly we take user input based on which the desired conversion takes place.


Then based on the user input using if else conditions we either perform the conversion using the above mentioned formula and display the original scale value along with converted value or exit as shown below:


The entire code is and an output instance are as follow:









1 comment

Recent Posts

See All

1 commento


Data Insight
Data Insight
23 set 2021

Use code snippets to insert your code instead of images.


Mi piace
bottom of page