Hi,
There is this short code which I have written. The variable Vinf_values is saved in a list. I am trying to evaluate P0 and T0 and here I am using the list of Mf_values as you can see. I want to save the four values of P0 and T0 in a list like for Mf_values. However, Python returns with an error.
There is this short code which I have written. The variable Vinf_values is saved in a list. I am trying to evaluate P0 and T0 and here I am using the list of Mf_values as you can see. I want to save the four values of P0 and T0 in a list like for Mf_values. However, Python returns with an error.
1 2 3 4 5 6 7 8 |
Mf_values = [ 0.8 , 0.9 , 1.2 , 1.5 ] Vinf_values = [Mf_value * (gamma * R * tatm) * * 0.5 for Mf_value in Mf_values] P0 = [( 1 + ((gamma - 1 ) / 2 ) * (Mf_values * * 2 ) * * (gamma / (gamma - 1 )) * patm] T0 = [( 1 + ((gamma - 1 ) / 2 ) * (Mf_values * * 2 )) * tatm] pg = P0 - patm T0 = ( 1 + ((gamma - 1 ) / 2 ) * (Mf_values * * 2 )) * tatm ^ SyntaxError: invalid syntax |