summaryrefslogtreecommitdiff
path: root/wk6
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-05-03 07:22:11 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-05-03 07:22:11 +0000
commit4006a87670ec2ee6185bb79f11019e993cbf464a (patch)
tree2ce3a003a0b76bbc475ce0e964d5f6d141c475d0 /wk6
parentf00ed6d9ca9e165459c7645fce70ce6d7ee48d5f (diff)
Fri, May 3, 2024, 12:22 AM -07:00
Diffstat (limited to 'wk6')
-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')