MCPcopy Index your code
hub / github.com/geekcomputers/Python / first_check

Method first_check

Credit_Card_Validator.py:37–43  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

35 return "Company : " + comp
36
37 def first_check(self):
38 if 13 <= len(self.card_no) <= 19:
39 message = "First check : Valid in terms of length."
40
41 else:
42 message = "First check : Check Card number once again it must be of 13 or 16 digits long."
43 return message
44
45 def validate(self):
46 # double every second digit from right to left

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected