On 12/17/20 9:10 AM, Bischoop wrote:
> Could you expand here, I rather don't know how I could do it different
> way apart from if maritals == 'Yes' or maritals == 'No' or is it what
> you meant?

I think he's hinting at using a loop instead.

while maritals != 'Yes' and maritals != 'No':
    maritals = input('Married: Yes/No ?: ').title()

I think I got the logical condition right. Sometimes those are tricky!
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to