summaryrefslogtreecommitdiff
path: root/wk6/lect
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-05-03 07:14:14 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-05-03 07:14:14 +0000
commit115eba7d2a20ccab78f6fbef25089c967d0dd526 (patch)
tree922c09124cc5e471869b63b08a40585698935e14 /wk6/lect
parentafea01d53337fb4991411cbf6e5aacb933ff05f7 (diff)
Fri, May 3, 2024, 12:14 AM -07:00
Diffstat (limited to 'wk6/lect')
-rw-r--r--wk6/lect/compare.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/wk6/lect/compare.py b/wk6/lect/compare.py
new file mode 100644
index 0000000..64a6a73
--- /dev/null
+++ b/wk6/lect/compare.py
@@ -0,0 +1,19 @@
+# from cs50 import get_int
+
+# x =get_int("What's x? ")
+# y =get_int("What's y? ")
+
+# if x < y:
+# print("x is less than y")
+# elif x > y:
+# print("x is grretaer than y")
+# else:
+# print("x is equal to y")
+
+s = input("s: ")
+t = input("t: ")
+
+if s == t:
+ print("SAME")
+else:
+ print("DIFFERENT")