def solution(s): answer = True if len(s)==4 or len(s)==6: pass else: answer=False for c in s: if c.isalpha(): answer=False break return answer