I'm a beginner in python and i'm wondering if there is a classy way to do this :
if societe_var == 'apple':
bu_list = bu_list_apple
elif societe_var == 'banana':
bu_list = bu_list_banana
elif societe_var == 'pear' :
bu_list = bu_list_pear
else :
bu_list = bu_list_cherry
Best regards,
Kair0