Initial upload of comp sci work

This commit is contained in:
2026-01-15 22:59:07 -05:00
commit d728587a96

19
Day 1.py Normal file
View File

@@ -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