Code Value Table In Python Using For Loop