I was wondering if someone could tell me the pythonic way to check out the following.
I have a 6 bit binary number and want to check with its decimal values. Using mathe
Based on the somewhat vague information in the question and what I've been able to gather from the OP's comments, here's my guess:
def func1(): pass
def func2(): pass
def func3(): pass
# ...
def func62(): pass
def func63(): pass
if 0 < a < 64:
globals()['func'+str(a)]()
else:
print 'a is out of range'