Learn practical skills, build real-world projects, and advance your career
pincode = input('enter your pincode')


if pincode.isdigit() and (len(pincode)==4 or len(pincode)==6):
    print(True)
else:
    print(False)
enter your pincode123456 True
 
pincode = input('enter your pincode')


if pincode.isdigit() and (len(pincode) in (4,6)):
    print(True)
else:
    print(False)
"12".isdigit()
True
"123a".isdigit()
False