I need help with this code, See Error below in picture

Hey Friends,

I’m having problem with this code. Its a personal something I’m working on. Based on GDP of each country starting with Nigeria.

Here is an excerpt giving me problem.

Your help will be much appreciated.

P.S: Beginner Tho.

Well, it says that your variable assert_almost is not defined anywhere in your code before you are trying to compare it with the tuple (kappa, .348, decimal[3]).

Thanks Pal I am trying similar suggestion right now. We are here for common goal.
I appreciate your quick response.