I have a table with product codes, the first two chars of the product code is the product group.
using the product group I'd like to test the content of certain data.
Would this be proper coding or is there a better way ?
if prodcust_code[:2] == "AB" do:
if prodcust_code[:2] == "CC" do:
if prodcust_code[:2] == "EF" do:
if prodcust_code[:2] == "US" do:
3 Months Ago
Related Article:Starting Python
is a Python discussion thread by vegaseat that has 340 replies, was last updated 2 months ago and has been tagged with the keywords: code, hints, python, tricks, tutorial.