Skip to content

Instantly share code, notes, and snippets.

@moulik-source
Created November 4, 2021 16:45
Show Gist options
  • Save moulik-source/fa1e45af60c2a655ed881365a0b31f4f to your computer and use it in GitHub Desktop.
Save moulik-source/fa1e45af60c2a655ed881365a0b31f4f to your computer and use it in GitHub Desktop.
Celsius to Fahrenheit
# Python Program to convert temperature in celsius to fahrenheit
# change this value for a different result
celsius = 37.5
# calculate fahrenheit
fahrenheit = (celsius * 1.8) + 32
print('%0.1f degree Celsius is equal to %0.1f degree Fahrenheit' %(celsius,fahrenheit))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment