DEV Community

SILAMBARASAN A
SILAMBARASAN A

Posted on

Pincode validate

too be discuse

def pincode(pc):
    if pc//100000!=0 and pc//100000<=9:
        print("valid")
    else:
        print("invalid")
pincode(int(input("Enter your 6 digit pin code :")))
Enter fullscreen mode Exit fullscreen mode

Top comments (0)