diff options
Diffstat (limited to 'wk6')
-rw-r--r-- | wk6/lect/agree.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/wk6/lect/agree.py b/wk6/lect/agree.py index aace9f0..c68192b 100644 --- a/wk6/lect/agree.py +++ b/wk6/lect/agree.py @@ -1,6 +1,10 @@ s = input("Do you agree? ") -if s == "Y" or s == "y": +# if s == "Y" or s == "y": +# print('Agreed') +# elif s == 'N' or s == 'n': +# print("Not agreed") + +if s in ['y', 'yes']: print('Agreed') -elif s == 'N' or s == 'n': - print("Not agreed") + |