import streamlit as st def main(): st.title("Python 3 Code Generator") st.text("Enter your code below:") code = st.text_area("", height=600) if st.button("Generate"): with open("code.py", "w") as f: f.write(code) st.success("Code generated successfully!") if __name__ == "__main__": main() import streamlit as st st.write("The code here is,",(code), text_color="blue")