| import streamlit as st | |
| x = st.slider('Select a value') | |
| st.write(x, 'squared is', x * x) | |
| st.write(x, 'cubed is', x ** 3) | |
| st.write(x, 'square root is', x ** (1/2)) | |
| st.write(x, 'cube root is', x ** (1/3)) | |
| y = st.text_input("Enter your name: ") | |
| st.write(y) |