summaryrefslogtreecommitdiff
path: root/wk6
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-05-03 07:00:07 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-05-03 07:00:07 +0000
commit8518852acc6f37a4309a5ddd3418599714d49425 (patch)
tree00e9ceb12f88ac75a3c9d2d9a4997a75c57ed037 /wk6
parent011cd25c10178bf34e3ce50cf9b5e7955393846d (diff)
Fri, May 3, 2024, 12:00 AM -07:00
Diffstat (limited to 'wk6')
-rw-r--r--wk6/lect/calculator.py4
-rw-r--r--wk6/lect/sentimental-hello/hello.py6
2 files changed, 6 insertions, 4 deletions
diff --git a/wk6/lect/calculator.py b/wk6/lect/calculator.py
new file mode 100644
index 0000000..d6886ee
--- /dev/null
+++ b/wk6/lect/calculator.py
@@ -0,0 +1,4 @@
+x = input("x: ")
+y = input("y: ")
+
+print(x + y)
diff --git a/wk6/lect/sentimental-hello/hello.py b/wk6/lect/sentimental-hello/hello.py
index b3c15b9..9ab3d2c 100644
--- a/wk6/lect/sentimental-hello/hello.py
+++ b/wk6/lect/sentimental-hello/hello.py
@@ -1,4 +1,2 @@
-from cs50 import get_string
-
-answer = get_string("What's your name? ")
-print("hello, " + answer)
+answer = input("What's your name? ")
+print(f"hello, {answer}")