import streamlit as st | |
code= "def f1(x): return str(x * 3)" | |
exec(code) | |
st.write(f1(3)) | |
content = st_ace(language="python") | |
st.write(len(content.splitlines())) | |
exec(content) | |
code= "def f1(x): return str(x * 3)" | |
exec(code) | |
st.text(content) | |
st.write(f1(3)) | |
st.write(test_fun(3)) | |