20 lines
353 B
Python
20 lines
353 B
Python
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
|
|
|
|
|
|
|