LuisLozano commited on
Commit
3fb1c64
1 Parent(s): f70b39d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -2
app.py CHANGED
@@ -1,4 +1,15 @@
1
  import streamlit as st
2
 
3
- x = st.slider('Select a value', max_value=10)
4
- st.write(x, 'squared is', x * x)
 
 
 
 
 
 
 
 
 
 
 
 
1
  import streamlit as st
2
 
3
+ A = st.number_input(
4
+ "Insert the initial investment (in $): "
5
+ )
6
+ r = st.number_input(
7
+ "Insert the interest rate (nominal in %): "
8
+ )
9
+ T = st.number_input(
10
+ "Insert the number of years of your investment: "
11
+ )
12
+
13
+ y = A * (1 + r/100)**T
14
+
15
+ st.write(f"Your money after {T} years is ${y}")