link to your website https://webservices.missouriwestern.edu
print('hello world','and something',3+5)
x = 2
y = 13
x+y
x, y = 8,2
x*y
print(x/y)
print(x*y)
print(x**y, y**x)
print( x//y, y//x)
print( x ==y, x==y+x-y)
List1 = [2,3,4,5,6,7]
List1[3]
print(List1[0:200])
print(List1[2:8])
print(List1[2:])
print(List1[1:8:2])
print(List1[0::3])
List2 = [2,3,4,5,6,7]
for count in range(0,len(List2)):
print(List2[count])
print(count)
bob='the once was a cat print from.....'
for ss in range(0,len(bob)):
print(bob[ss])
plot(List1,List2)
import matplotlib.pyplot as plt
plt.plot(List1,List2)
plt.scatter(List1, List2)
plt.delaxes?
List2= [3,4,4,5,6,6]
plt.plot(List1,List2)
plt.plot(List1,List2,".-") #x-,o-
Something something $ A(t)=P(1+\frac{r}{n})^{nt} $
$$ A(t)=P(1+\frac{r}{n})^{nt} $$
The tale of two approaches, first lets set up the x and then the y points and plot them
P = 13000
r=0.067
n=12
X_vals = []
Y_vals=[]
for count in range(0,100):
X_vals.append(count)
Y_point = P*(1+r/n)**(n*count)
Y_vals.append(Y_point)
plt.plot(X_vals,Y_vals)
plt.plot(X_vals,Y_vals,c='red')
plt.title("Funky Growth rate")
plt.plot(X_vals,Y_vals,c='red')
plt.title("Funky Growth rate")
plt.show()
%config InlineBackend.figure_format='retina'
plt.plot(X_vals,Y_vals,c='red')
plt.title("Funky Growth rate")
plt.show()
plt.plot(X_vals,Y_vals,c='red')
plt.title("Funky Growth rate")
plt.xlabel('Time in Years')
plt.ylabel('Money in Dollars')
plt.show()
import numpy as np
X_vals= np.arange(0,100)
X_vals
Y_vals = P*(1+r/n)**(n*X_vals)
plt.plot(X_vals,Y_vals,c='red')
plt.title("Funky Growth rate")
plt.xlabel('Time in Years')
plt.ylabel('Money in Dollars')
plt.show()
def Compound_interest(t, P, r, n):
return P*(1+r/n)**(n*t)
Compound_interest(1,1000,0.03,12)