If you want to call the appropriate function, do this ...
code = prodcust_code[:2]
if code == "AB":
function_AB()
elif code == "CC":
function_CC()
elif code == "EF":
function_EF()
elif code == "US":
function_US()
else:
print("No function found for {}".format(code))
vegaseat
DaniWeb's Hypocrite
6,476 posts since Oct 2004
Reputation Points: 1,447
Solved Threads: 1,611
Skill Endorsements: 36
Question Answered as of 3 Months Ago by
vegaseat
and
snippsat