Trace Table Python Program Code