Table Using Function In Python Definition Range