I want to fix the value of text for the whole code and refresh it when the website is reloaded. The value of text is keep on changing.
import streamlit as st
import random
word_list = ['tuple' , 'global' , 'list' , 'dict' , 'string' , 'elif' , 'else' , 'while' , 'for' , 'import' , 'from' , 'def' , 'try' , 'except' , 'finally']
def random_word():
final_word = random.choice(word_list)
return final_word
st.set_page_config("Hangman for Python Programmers")
st.markdown("<h1 style='text-align: center; color: red;'>Python Hangman</h1>", unsafe_allow_html=True)
st.write("Enter the blanks with a Python Keyword")
c = st.container()
st.write("Fill letters here")
text = random_word()