Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,6 @@ def demonstrate_for_loop(n):
|
|
29 |
f'<strong>For Loop result:</strong> {result}</div>', unsafe_allow_html=True)
|
30 |
|
31 |
time.sleep(0.5) # Simulate execution time
|
32 |
-
st.experimental_rerun() # Rerun the script to show updates
|
33 |
|
34 |
# Function to demonstrate a while loop with colorful output
|
35 |
def demonstrate_while_loop(n):
|
@@ -52,7 +51,6 @@ def demonstrate_while_loop(n):
|
|
52 |
|
53 |
time.sleep(0.5) # Simulate execution time
|
54 |
i += 1
|
55 |
-
st.experimental_rerun() # Rerun the script to show updates
|
56 |
|
57 |
# Streamlit app layout
|
58 |
st.title("Loop Demonstrator App")
|
|
|
29 |
f'<strong>For Loop result:</strong> {result}</div>', unsafe_allow_html=True)
|
30 |
|
31 |
time.sleep(0.5) # Simulate execution time
|
|
|
32 |
|
33 |
# Function to demonstrate a while loop with colorful output
|
34 |
def demonstrate_while_loop(n):
|
|
|
51 |
|
52 |
time.sleep(0.5) # Simulate execution time
|
53 |
i += 1
|
|
|
54 |
|
55 |
# Streamlit app layout
|
56 |
st.title("Loop Demonstrator App")
|