Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GTIN-8 Code
#2
Depending on file size, most common approach would be to open the file and read all of its content in memory, in some data structure (most probably - dict, using GTIN code as key). Then you can check if the product number that user has entered is in the dict.
if it is csv file, you may use csv module for convenience.
Reply


Messages In This Thread
GTIN-8 Code - by harry183713718312378 - Apr-30-2017, 06:11 PM
RE: GTIN-8 Code - by buran - Apr-30-2017, 07:11 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  GTIN code validation program not working! AnonDxZ 1 2,819 Nov-29-2017, 11:25 PM
Last Post: Prrz

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020