Mathemagic / app.py
RMHalak's picture
Update app.py
d6f7687 verified
raw
history blame
305 Bytes
import streamlit as st
with open('./answer.txt', 'r') as file:
answer = str(file)
user_answer = st.text_input('Insert your answer', value="")
if user_answer == "":
# pass
st.markdown(answer)
elif user_answer == answer:
st.markdown('YEAH! YOU MADE IT!')
else:
st.markdown('Nope...')