Python Forum
GTIN code validation program not working!
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GTIN code validation program not working!
#2
You're calling variables outside of their assignment.

Everything that is intended to be within your "find()" function's first "if:" statement should be inside of the "try:" statement as well, currently they reside outside. Hopefully, you understand what I mean by this, if not I'll explain further.

Also, consider using a while loop instead of calling your functions again.
Reply


Messages In This Thread
RE: GTIN code validation program not working! - by Prrz - Nov-29-2017, 11:25 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python code not working garvind25 1 2,744 Jun-24-2020, 09:38 PM
Last Post: Yoriz
  Enigma Program not working properly npd29 3 2,082 May-01-2020, 10:37 AM
Last Post: pyzyx3qwerty
  Please help me get this code working that i haven't posted yet damnit 3 2,434 May-22-2019, 09:57 PM
Last Post: Yoriz
  Help Me Code This Program NZedMarine 1 2,090 Nov-16-2018, 12:11 AM
Last Post: Larz60+
  Code isnt working abdullahali 5 3,409 Oct-01-2018, 02:31 AM
Last Post: Skaperen
  My program won't run through the entire code EvanCahill 1 2,252 Jul-26-2018, 03:19 AM
Last Post: ichabod801
  Supposedly simple program not working! Please help! BenjaminDJ 5 4,061 Feb-20-2018, 08:43 PM
Last Post: BenjaminDJ
  Simple Python program not working AudioKev 3 3,227 Jan-23-2018, 09:57 PM
Last Post: Larz60+
  GTIN-8 Code harry183713718312378 1 4,146 Apr-30-2017, 07:11 PM
Last Post: buran

Forum Jump:

User Panel Messages

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