Review, suggestion etc?
Michael Torrie
torriem at gmail.com
Thu Dec 17 11:37:56 EST 2020
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!
More information about the Python-list
mailing list