4. this is 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

st.header('''Temperature Conversion App''')

st.write('''Slide to convert value to Fahrenheit''')
value = st.slider('Temperature in Fahrenheit')

st.write(value, '°F is ', (value * 9/5) + 32, '°C')

#Converting temperature to Fahrenheit
st.write('''Slide to convert value to Fahrenheit''')
value = st.slider('Temperature in Celcius')

st.write(value, '° is ', (value - 32) * 5/9, '°C')
content_copyCOPY