Jan-13-2022, 10:44 PM
I'm getting invalid syntax with Python showing a carrot under the first colon. What did I do wrong?
print({}, ",", {}, ",", {}, ",", {}, ",", {}, ",", {}, ",", {:.2f}, ",", {:.2f}, ",", {:.2f}, ",", {}, ",", {:.2f}, ",", {}, ",", {}, ",", {}, ",", {}, ",", {}, ",", {:.2f}, ",", {:.2f}, ",", {}, ",", {:.2f}, ",", {:.2f}, ",", {:.2f}, ",", {:.2f}.format(spread_count, date, trade_date, L_spx, L_strike, L_price, L_iv, L_delta, L_theta, S_price, S_iv, L_exp_mo, L_dte_trade_inception, S_exp_mo, S_dte_trade_inception, spread_width, S_delta, S_theta, P_price, P_delta, P_theta, P_t_d, P_skew), file=strike_file) #testing f-string formatting