Message from Python discussions

December 2018

— I tried this but what is case_dob has masked year


Case_dob could be like "****-04-27" - year masked. In this case compare month and day. If month and day are same - return True. Otherwise False.

— I am stuck here ?

— Try making 3 different if statements

— One for the year
One for the month
One for the day

— If it’s masked/true, move to the next one

— Otherwise just return false

— Okay I'll try

— Ok, if year is masker you can use split for string if structure not changes

— Example

masked = '****-11-12'
string_list = masked.split("-")
# ['****', '11', '12']

— If ... not true
return false
elif ... not true
return false
elif ... not true
return fslse
else :
return true

Message permanent page

— What does this mean?