import streamlit as st # with open('/answer.txt', 'w') as file: # answer = answer = "Y" user_answer = st.text_input('Your answer', value="") if user_answer == answer: st.markdown('YEAH! YOU MADE IT!') else: st.markdown('Nope...')