4. Celcfaren, a Streamlit app that enables the user to convert temperature values from Celsius to Fahrenheit and vice versa

PHOTO EMBED

Fri Aug 19 2022 13:59:10 GMT+0000 (Coordinated Universal Time)

Saved by @mwebrania #python

import streamlit as st #import streamlit right after installing it to the system

st.header('''Temperature Conversion App''') #Head / App title

#Converting temperature to Fahrenheit 
st.write('''Slide to convert Celcius to Fahrenheit''')
value = st.slider('Temperature in Celcius')
 
st.write(value, '°C is ', (value * 9/5) + 32, '°F')
st.write('Conversion formula: (°C x 9/5) + 32 = °F')
 
#Converting temperature to Celcius
st.write('''Slide to convert Fahrenheit to Celcius''')
value = st.slider('Temperature in Fahrenheit')
 
st.write(value, '°F is ', (value - 32) * 5/9, '°C')
st.write('Conversion formula: (°F - 32) x 5/9 = °C')
content_copyCOPY

one of my first apps while in college it also works since I have published it to Streamlit cloud space //copy-paste the URL below to the browser to use the app

mwebrania.streamlit.app