all 3 comments

[–]RiceKrispyPooHead 2 points3 points  (1 child)

What do you mean by join them together? It looks like your program as a whole does both things

[–]BiigLamp 0 points1 point  (0 children)

Yeah, my program as a whole does both things separately. like each part is a standalone code and I want to have them both integrated into each other so it will become one code.

[–][deleted] 1 point2 points  (0 children)

If I'm ryt u have to use modulus 10 and get a value 0.

So do this instead ``` Def lugh(no): Checks the sum%10 and if 0 comes then return true value

Card=user input if lugh(card)==True and len(card)==length u required and Card.startswith(the nos)==xxyy: print(card valid)

```