Is it possible to get the values entered/select and appeneded before '@'


how to get the values entered/selected

Steps to reproduce

Code snippet:

import streamlit as st

with st.form("my_form"):
   st.write("Create Test account")
   Email ='Please select your email address',('','','',''))
   ocg = st.text_input('Enter the ocg number', key=int)
   st.write('Select the environment')
   option_1 = st.checkbox('Stage')
   option_2 = st.checkbox('Prod')
   if option_1:
      st.write('You entered:', Email+ocg+str('Stage'))
   elif option_2:
      st.write('You entered:', Email+ocg+str('Prod'))
   # Every form must have a submit button.
   submitted = st.form_submit_button("Submit")

If applicable, please provide the steps we should take to reproduce the error or specified behavior.

Expected behavior:

I am trying to append the values selected/entered and get the output as expected below:

Actual behavior:

i am getting the output as below:

Take a look at str.partition.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.