Write valid_pin(pin) returning True if pin (a string) is 4 or 6 characters long and contains only digits.
valid_pin('1234')
→ Truevalid_pin('12a4')
→ FalseSubmit runs 5 tests, including hidden edge cases.
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.