Skip to content

Instantly share code, notes, and snippets.

@moulik-source
Created November 4, 2021 16:52
Show Gist options
  • Save moulik-source/4efffe53046a5d137d7a79d04e34dfe3 to your computer and use it in GitHub Desktop.
Save moulik-source/4efffe53046a5d137d7a79d04e34dfe3 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 = float(input("Please enter the value: ") )
# 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