How do I write the following mathematical equation in python without using numpy?

I'm unable to convert this into code and I cannot use numpy/pandas.

math equation

Can someone help me out? Thanks!

🔴 No definitive solution yet