#Uncomment the functions to run them!

################# Problem 2 #########################
'''
def nestedFor(outerVal, innerVal):
    for i in range(outerVal):
        for j in range(innerVal):
            print(i, j)

print("Before calling nestedFor")
nestedFor(2, 3)
print("after calling nestedFor")

def mystery(s, length):
    result = ""
    i = 0
    while len(result) < length:
        c = s[i]
        repeat = random.randint(1, 5)
        result = result + c * repeat
        i = i + 1
        if i == len(s):
            i = 0
    return result

print("Before calling mystery")
mystery("Hello World", 15)
print("After calling mystery")

def isPalindrome(s):
    return
    
assert(isPalindrome("this is not a palindrome") == False)
assert(isPalindrome("kayak") == True)

'''
