From d728587a96098a9f7caac9ecb6c0cf6725f9900e Mon Sep 17 00:00:00 2001 From: Benjamin Adovasio Date: Thu, 15 Jan 2026 22:59:07 -0500 Subject: [PATCH] Initial upload of comp sci work --- Day 1.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Day 1.py diff --git a/Day 1.py b/Day 1.py new file mode 100644 index 0000000..885e3be --- /dev/null +++ b/Day 1.py @@ -0,0 +1,19 @@ +def addInts(num: int) -> int: + total = 0 + for i in range(num): + total += (i+1) + return total + +#addInts(5) + +import random +def listOfRandomStrings() -> list[str]: + new_list = [] + num_items = random,randint(1,5) + for i in range(num_items): + string = randomString() + new_list.append(string) + return new_list + + +