Update app.py
Browse files
app.py
CHANGED
|
@@ -2,4 +2,15 @@ import streamlit as st
|
|
| 2 |
|
| 3 |
code= "def f1(x): return str(x * 3)"
|
| 4 |
exec(code)
|
| 5 |
-
st.write(f1(3))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
code= "def f1(x): return str(x * 3)"
|
| 4 |
exec(code)
|
| 5 |
+
st.write(f1(3))
|
| 6 |
+
|
| 7 |
+
content = st_ace(language="python")
|
| 8 |
+
|
| 9 |
+
st.write(len(content.splitlines()))
|
| 10 |
+
exec(content)
|
| 11 |
+
code= "def f1(x): return str(x * 3)"
|
| 12 |
+
|
| 13 |
+
exec(code)
|
| 14 |
+
st.text(content)
|
| 15 |
+
st.write(f1(3))
|
| 16 |
+
st.write(test_fun(3))
|