I'm really new to Python and even the simplest things are hard for me to understand. That being said, I've written a simple loop to find q based on some other variables taken from data, but it only displays the last q value computed. I want it to display the entire list, but all I've gotten in terms of "help" from my lab group says "make sure it's a list and then have it print." Isn't it already a list if it is computing multiple values? How do I modify it otherwise?
Here's the code:
for i in range(len(vf)):
a = math.sqrt((b/(2*p))**2 + 9*eta*vf[i]/(2*g*rho)) - b/(2*p)
m = 4/3 * math.pi * a**3 * rho
q = m * g * (vf[i]+vr[i])/ (E * vf[i])
Thanks for explaining!