so, my question is:

Do I need to actually type out and store each of these account numbers into an array (if its even possible)?

Here's what I have so far, but it's only yielding "Invalid."

from array import array valid=[] #seems like something's wrong here somewhere for i in range(0,18): acct=input("Enter the charge account number: ") valid.insert(i,acct) if acct[i]==valid: out="Account number valid." else: out="Invalid account." #don't know why this is here, but these are the given account numbers valid=[5658845,8080152,1005231,4520125,4562555,6545231,7895122,5552012,3852085,8777541,7825877,7881200,7576641,5050552,8777541,8451277,7825877,1302850,1250255,4851002] .

If you can gimme some pointers that'd be great. Thanks in advance