summaryrefslogtreecommitdiff
path: root/wk6/lect
diff options
context:
space:
mode:
Diffstat (limited to 'wk6/lect')
-rw-r--r--wk6/lect/agree.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/wk6/lect/agree.py b/wk6/lect/agree.py
index c04a32a..f731a6a 100644
--- a/wk6/lect/agree.py
+++ b/wk6/lect/agree.py
@@ -1,11 +1,11 @@
-s = input("Do you agree? ")
+s = input("Do you agree? ").lower()
# 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 in ['n', 'no']:
-# print('Not agreed')
+if s in ['y', 'yes']:
+ print('Agreed')
+elif s in ['n', 'no']:
+ print('Not agreed')